Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
libvmod-blobcode
Commits
642059d1
Commit
642059d1
authored
Jan 04, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the comments for base64_encode()
parent
b1e14829
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
vmod_convert.c
src/vmod_convert.c
+4
-6
No files found.
src/vmod_convert.c
View file @
642059d1
...
@@ -80,17 +80,15 @@ event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e event)
...
@@ -80,17 +80,15 @@ event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e event)
}
}
/*
/*
* Base64-encode *in (size: inlen) into
*out, max outlen bytes. If there is
* Base64-encode *in (size: inlen) into
the blob supplied as rblob. If
*
insufficient space, it will bail out and return -1. Otherwise, it will
*
there is insufficient space, it will bail out and return
*
null-terminate and return the used space
.
*
NULL. Otherwise, it will null-terminate and return the blob
.
* The
alphabet `a` defines... the alphabet. Padding is optional
.
* The
enc argument specifies the alphabet and whether padding is used
.
* Inspired heavily by gnulib/Simon Josefsson (as referenced in RFC4648)
* Inspired heavily by gnulib/Simon Josefsson (as referenced in RFC4648)
*
*
* XXX: tmp[] and idx are used to ensure the reader (and author) retains
* XXX: tmp[] and idx are used to ensure the reader (and author) retains
* XXX: a limited amount of sanity. They are strictly speaking not
* XXX: a limited amount of sanity. They are strictly speaking not
* XXX: necessary, if you don't mind going crazy.
* XXX: necessary, if you don't mind going crazy.
*
* FIXME: outlenorig is silly. Flip the logic.
*/
*/
static
VCL_BLOB
static
VCL_BLOB
base64_encode
(
struct
ws
*
ws
,
const
enum
encoding
enc
,
struct
vmod_priv
*
rblob
,
base64_encode
(
struct
ws
*
ws
,
const
enum
encoding
enc
,
struct
vmod_priv
*
rblob
,
...
...
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