Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
uplex-varnish
unique-xids
Commits
e1d2d67c
Commit
e1d2d67c
authored
May 31, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Namespace cleanup: base64_* -> VB64_*
parent
9787e415
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+2
-2
varnishapi.h
include/varnishapi.h
+2
-2
base64.c
lib/libvarnishapi/base64.c
+4
-4
No files found.
bin/varnishncsa/varnishncsa.c
View file @
e1d2d67c
...
@@ -608,11 +608,11 @@ h_ncsa(void *priv, enum vsl_tag tag, unsigned fd,
...
@@ -608,11 +608,11 @@ h_ncsa(void *priv, enum vsl_tag tag, unsigned fd,
char
*
rubuf
;
char
*
rubuf
;
size_t
rulen
;
size_t
rulen
;
base
64_init
();
VB
64_init
();
rulen
=
((
strlen
(
lp
->
df_u
)
+
3
)
*
4
)
/
3
;
rulen
=
((
strlen
(
lp
->
df_u
)
+
3
)
*
4
)
/
3
;
rubuf
=
malloc
(
rulen
);
rubuf
=
malloc
(
rulen
);
assert
(
rubuf
!=
NULL
);
assert
(
rubuf
!=
NULL
);
base
64_decode
(
rubuf
,
rulen
,
lp
->
df_u
);
VB
64_decode
(
rubuf
,
rulen
,
lp
->
df_u
);
q
=
strchr
(
rubuf
,
':'
);
q
=
strchr
(
rubuf
,
':'
);
if
(
q
!=
NULL
)
if
(
q
!=
NULL
)
*
q
=
'\0'
;
*
q
=
'\0'
;
...
...
include/varnishapi.h
View file @
e1d2d67c
...
@@ -264,7 +264,7 @@ extern const char *VSL_tags[256];
...
@@ -264,7 +264,7 @@ extern const char *VSL_tags[256];
/* base64.c */
/* base64.c */
void
base
64_init
(
void
);
void
VB
64_init
(
void
);
int
base
64_decode
(
char
*
d
,
unsigned
dlen
,
const
char
*
s
);
int
VB
64_decode
(
char
*
d
,
unsigned
dlen
,
const
char
*
s
);
#endif
#endif
lib/libvarnishapi/base64.c
View file @
e1d2d67c
...
@@ -15,7 +15,7 @@ static const char b64[] =
...
@@ -15,7 +15,7 @@ static const char b64[] =
static
char
i64
[
256
];
static
char
i64
[
256
];
void
void
base
64_init
(
void
)
VB
64_init
(
void
)
{
{
int
i
;
int
i
;
const
char
*
p
;
const
char
*
p
;
...
@@ -28,7 +28,7 @@ base64_init(void)
...
@@ -28,7 +28,7 @@ base64_init(void)
}
}
int
int
base
64_decode
(
char
*
d
,
unsigned
dlen
,
const
char
*
s
)
VB
64_decode
(
char
*
d
,
unsigned
dlen
,
const
char
*
s
)
{
{
unsigned
u
,
v
,
l
;
unsigned
u
,
v
,
l
;
int
i
;
int
i
;
...
@@ -78,9 +78,9 @@ main(int argc, char **argv)
...
@@ -78,9 +78,9 @@ main(int argc, char **argv)
(
void
)
argc
;
(
void
)
argc
;
(
void
)
argv
;
(
void
)
argv
;
base
64_init
();
VB
64_init
();
l
=
sizeof
buf
;
l
=
sizeof
buf
;
base
64_decode
(
buf
,
&
l
,
test1
);
VB
64_decode
(
buf
,
&
l
,
test1
);
printf
(
"%s
\n
"
,
buf
);
printf
(
"%s
\n
"
,
buf
);
return
(
0
);
return
(
0
);
}
}
...
...
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