Commit 32afc735 authored by Nils Goroll's avatar Nils Goroll

blob update wip

parent c5227cab
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment