Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
4d417cb0
Commit
4d417cb0
authored
Jan 02, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix
parent
93d7bf89
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
assets/shadowsocks
assets/shadowsocks
+0
-0
jni/Android.mk
jni/Android.mk
+1
-1
jni/shadowsocks/encrypt.c
jni/shadowsocks/encrypt.c
+4
-2
libs/armeabi/shadowsocks
libs/armeabi/shadowsocks
+0
-0
No files found.
assets/shadowsocks
View file @
4d417cb0
No preview for this file type
jni/Android.mk
View file @
4d417cb0
...
...
@@ -17,7 +17,7 @@ LOCAL_PATH := $(call my-dir)
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
libev
LOCAL_CFLAGS
+=
-O2
-D
EV_MULTIPLICITY
LOCAL_CFLAGS
+=
-O2
-D
NDEBUG
-DHAVE_CONFIG_H
LOCAL_SRC_FILES
:=
\
libev/ev.c
\
libev/event.c
...
...
jni/shadowsocks/encrypt.c
View file @
4d417cb0
...
...
@@ -114,9 +114,10 @@ static void mergesort(uint8_t array[], int length)
void
encrypt
(
char
*
buf
,
int
len
,
EVP_CIPHER_CTX
*
ctx
)
{
if
(
ctx
!=
NULL
)
{
int
outlen
;
unsigned
char
mybuf
[
BUF_SIZE
]
;
unsigned
char
*
mybuf
=
malloc
(
BUF_SIZE
)
;
EVP_CipherUpdate
(
ctx
,
mybuf
,
&
outlen
,
(
unsigned
char
*
)
buf
,
len
);
memcpy
(
buf
,
mybuf
,
len
);
free
(
mybuf
);
}
else
{
char
*
end
=
buf
+
len
;
while
(
buf
<
end
)
{
...
...
@@ -129,9 +130,10 @@ void encrypt(char *buf, int len, EVP_CIPHER_CTX *ctx) {
void
decrypt
(
char
*
buf
,
int
len
,
EVP_CIPHER_CTX
*
ctx
)
{
if
(
ctx
!=
NULL
)
{
int
outlen
;
unsigned
char
mybuf
[
BUF_SIZE
]
;
unsigned
char
*
mybuf
=
malloc
(
BUF_SIZE
)
;
EVP_CipherUpdate
(
ctx
,
mybuf
,
&
outlen
,
(
unsigned
char
*
)
buf
,
len
);
memcpy
(
buf
,
mybuf
,
len
);
free
(
mybuf
);
}
else
{
char
*
end
=
buf
+
len
;
while
(
buf
<
end
)
{
...
...
libs/armeabi/shadowsocks
View file @
4d417cb0
No preview for this file type
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