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
14727b38
Unverified
Commit
14727b38
authored
Nov 09, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to VSL changes in varnish-cache
parent
92a4b658
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
vmod_gcrypt.c
src/vmod_gcrypt.c
+7
-7
vmod_gcrypt.h
src/vmod_gcrypt.h
+3
-0
No files found.
src/vmod_gcrypt.c
View file @
14727b38
...
...
@@ -127,7 +127,7 @@ errmsg(VRT_CTX, const char *fmt, ...)
VSLbv
(
ctx
->
vsl
,
SLT_VCL_Error
,
fmt
,
args
);
else
/* Should this ever happen in vcl_fini() ... */
VSL
(
SLT_VCL_Error
,
0
,
fmt
,
args
);
VSL
(
SLT_VCL_Error
,
NO_VXID
,
fmt
,
args
);
va_end
(
args
);
}
...
...
@@ -166,10 +166,10 @@ gcrypt_logger(void *priv, int level, const char *fmt, va_list args)
lvl
=
"DEBUG"
;
break
;
default:
VSL
(
SLT_Error
,
0
,
"Unknown libgcrypt log level %d"
,
level
);
VSL
(
SLT_Error
,
NO_VXID
,
"Unknown libgcrypt log level %d"
,
level
);
}
VSL
(
tag
,
0
,
"libgcrypt log message follows (%s):"
,
lvl
);
VSLv
(
tag
,
0
,
fmt
,
args
);
VSL
(
tag
,
NO_VXID
,
"libgcrypt log message follows (%s):"
,
lvl
);
VSLv
(
tag
,
NO_VXID
,
fmt
,
args
);
}
static
void
...
...
@@ -178,7 +178,7 @@ gcrypt_fatal(void *priv, int err, const char *text)
(
void
)
priv
;
if
(
text
==
NULL
)
text
=
gpg_strerror
(
err
);
VSL
(
SLT_Error
,
0
,
"libgcrypt fatal error, code=%d (%s), panic follows"
,
VSL
(
SLT_Error
,
NO_VXID
,
"libgcrypt fatal error, code=%d (%s), panic follows"
,
err
,
text
);
AZ
(
text
);
}
...
...
@@ -196,7 +196,7 @@ vmod_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
gcry_set_fatalerror_handler
(
gcrypt_fatal
,
NULL
);
gcrypt_version
=
gcry_check_version
(
MIN_GCRYPT_VERSION
);
if
(
gcrypt_version
==
NULL
)
{
VSL
(
SLT_VCL_Error
,
0
,
VSL
(
SLT_VCL_Error
,
NO_VXID
,
"libgcrypt initialization failed"
);
return
1
;
}
...
...
@@ -218,7 +218,7 @@ vmod_init(VRT_CTX, VCL_ENUM cmd, VCL_BYTES n)
return
;
}
if
(
gcry_control
(
GCRYCTL_INITIALIZATION_FINISHED_P
))
{
VSL
(
SLT_Debug
,
0
,
"libgcrypt initialization already finished"
);
VSL
(
SLT_Debug
,
NO_VXID
,
"libgcrypt initialization already finished"
);
return
;
}
...
...
src/vmod_gcrypt.h
View file @
14727b38
...
...
@@ -24,6 +24,9 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef NO_VXID
#define NO_VXID ((struct vxids){0})
#endif
enum
padding
{
#define PADDING(p) p,
...
...
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