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
d745e3b2
Unverified
Commit
d745e3b2
authored
Sep 16, 2019
by
Caio B. Silva
Committed by
Christian Brauner
Dec 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensures OpenSSL compatibility with older versions of EVP API.
Signed-off-by:
Caio B. Silva
<
caioboffo@gmail.com
>
parent
34a4e3a2
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 @
d745e3b2
...
@@ -344,11 +344,11 @@ static int do_sha1_hash(const char *buf, int buflen, unsigned char *md_value, un
...
@@ -344,11 +344,11 @@ static int do_sha1_hash(const char *buf, int buflen, unsigned char *md_value, un
return
-
1
;
return
-
1
;
}
}
mdctx
=
EVP_MD_CTX_
new
();
mdctx
=
EVP_MD_CTX_
create
();
EVP_DigestInit_ex
(
mdctx
,
md
,
NULL
);
EVP_DigestInit_ex
(
mdctx
,
md
,
NULL
);
EVP_DigestUpdate
(
mdctx
,
buf
,
buflen
);
EVP_DigestUpdate
(
mdctx
,
buf
,
buflen
);
EVP_DigestFinal_ex
(
mdctx
,
md_value
,
md_len
);
EVP_DigestFinal_ex
(
mdctx
,
md_value
,
md_len
);
EVP_MD_CTX_
free
(
mdctx
);
EVP_MD_CTX_
destroy
(
mdctx
);
return
0
;
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