Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-crypto
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-crypto
Commits
ef6ddcb4
Commit
ef6ddcb4
authored
Aug 28, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backwards compatibility with oder openssls
parent
c58bd1e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
configure.ac
configure.ac
+5
-0
vmod_crypto.c
src/vmod_crypto.c
+4
-0
No files found.
configure.ac
View file @
ef6ddcb4
...
@@ -22,6 +22,11 @@ AC_CHECK_LIB([crypto], [PEM_read_RSA_PUBKEY])
...
@@ -22,6 +22,11 @@ AC_CHECK_LIB([crypto], [PEM_read_RSA_PUBKEY])
test "$ac_cv_lib_crypto_PEM_read_RSA_PUBKEY" == "no" && \
test "$ac_cv_lib_crypto_PEM_read_RSA_PUBKEY" == "no" && \
AC_MSG_ERROR([Need libcrypto.])
AC_MSG_ERROR([Need libcrypto.])
AC_CHECK_LIB([crypto],
[EVP_MD_CTX_free],
[AC_DEFINE([HAVE_EVP_MD_CTX_FREE], [],
[Libcrypto has EVP_MD_CTX_free])])
AC_CHECK_PROGS(BASE64, [base64], [no])
AC_CHECK_PROGS(BASE64, [base64], [no])
test "$BASE64" == "no" && AC_MSG_ERROR([Required program 'base64' not found.])
test "$BASE64" == "no" && AC_MSG_ERROR([Required program 'base64' not found.])
...
...
src/vmod_crypto.c
View file @
ef6ddcb4
...
@@ -51,6 +51,10 @@ fini(void)
...
@@ -51,6 +51,10 @@ fini(void)
{
{
}
}
#ifndef HAVE_EVP_MD_CTX_FREE
#define EVP_MD_CTX_free(x) EVP_MD_CTX_destroy(x)
#define EVP_MD_CTX_new() EVP_MD_CTX_create()
#endif
struct
vmod_crypto_verifier
{
struct
vmod_crypto_verifier
{
unsigned
magic
;
unsigned
magic
;
...
...
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