Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
5c85a4a3
Unverified
Commit
5c85a4a3
authored
Sep 24, 2019
by
Christian Brauner
Committed by
GitHub
Sep 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3140 from caioboffo/fix3139
Ensures OpenSSL compatibility with older versions of EVP API.
parents
2a92bddc
b138bfcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.c
src/lxc/utils.c
+2
-2
No files found.
src/lxc/utils.c
View file @
5c85a4a3
...
...
@@ -344,11 +344,11 @@ static int do_sha1_hash(const char *buf, int buflen, unsigned char *md_value, un
return
-
1
;
}
mdctx
=
EVP_MD_CTX_
new
();
mdctx
=
EVP_MD_CTX_
create
();
EVP_DigestInit_ex
(
mdctx
,
md
,
NULL
);
EVP_DigestUpdate
(
mdctx
,
buf
,
buflen
);
EVP_DigestFinal_ex
(
mdctx
,
md_value
,
md_len
);
EVP_MD_CTX_
free
(
mdctx
);
EVP_MD_CTX_
destroy
(
mdctx
);
return
0
;
}
...
...
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