Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-gcrypt
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
libvmod-gcrypt
Commits
32afc735
Commit
32afc735
authored
Jan 24, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blob update wip
parent
c5227cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
vmod_gcrypt.c
src/vmod_gcrypt.c
+10
-7
No files found.
src/vmod_gcrypt.c
View file @
32afc735
...
...
@@ -42,10 +42,8 @@
#include <float.h>
#include "cache/cache.h"
//#include "vcl.h"
//#include "vrt.h"
#include "vcl.h"
#include "vas.h"
//#include "vdef.h"
#include "vqueue.h"
#include "vcc_if.h"
...
...
@@ -109,6 +107,8 @@ static pthread_once_t rnd_bool_once = PTHREAD_ONCE_INIT;
static
pthread_key_t
rnd_boolk
;
static
int
rnd_boolk_inited
=
0
;
#define BLOB_VMOD_GCRYPT_TYPE 0xa003140d
static
void
errmsg
(
VRT_CTX
,
const
char
*
fmt
,
...)
{
...
...
@@ -549,10 +549,13 @@ vmod_symmetric_encrypt(VRT_CTX, struct vmod_gcrypt_symmetric *symmetric,
goto
fail
;
}
b
=
VRT_
ciphertext
->
len
=
len
;
ciphertext
->
free
=
NULL
;
return
ciphertext
;
b
=
VRT_blob
(
ctx
,
"xgcrypt.encrypt()"
,
ciphertext
,
len
,
BLOB_VMOD_GCRYPT_TYPE
);
if
(
b
==
NULL
)
goto
fail
;
return
(
b
);
fail:
WS_Reset
(
ctx
->
ws
,
snap
);
...
...
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