Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
57385128
Commit
57385128
authored
Jan 03, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made base64_encode() non-static.
parent
2990e06f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
authenticate.c
authenticate.c
+2
-2
No files found.
authenticate.c
View file @
57385128
...
...
@@ -24,7 +24,7 @@
encode a buffer using base64 - simple and slow algorithm. null terminates
the result.
***************************************************************************/
static
void
base64_encode
(
char
*
buf
,
int
len
,
char
*
out
)
void
base64_encode
(
char
*
buf
,
int
len
,
char
*
out
)
{
char
*
b64
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
int
bit_offset
,
byte_offset
,
idx
,
i
;
...
...
@@ -33,7 +33,7 @@ static void base64_encode(char *buf, int len, char *out)
memset
(
out
,
0
,
bytes
+
1
);
for
(
i
=
0
;
i
<
bytes
;
i
++
)
{
for
(
i
=
0
;
i
<
bytes
;
i
++
)
{
byte_offset
=
(
i
*
6
)
/
8
;
bit_offset
=
(
i
*
6
)
%
8
;
if
(
bit_offset
<
3
)
{
...
...
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