Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ae83ec41
Commit
ae83ec41
authored
Jan 07, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix icc warnings: extra semi-colon and signed vs unsigned
parent
b5edf6f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Modules/_hashopenssl.c
Modules/_hashopenssl.c
+8
-8
No files found.
Modules/_hashopenssl.c
View file @
ae83ec41
...
...
@@ -33,12 +33,12 @@ static PyTypeObject EVPtype;
static EVP_MD_CTX CONST_new_ ## Name ## _ctx; \
static EVP_MD_CTX *CONST_new_ ## Name ## _ctx_p = NULL;
DEFINE_CONSTS_FOR_NEW
(
md5
)
;
DEFINE_CONSTS_FOR_NEW
(
sha1
)
;
DEFINE_CONSTS_FOR_NEW
(
sha224
)
;
DEFINE_CONSTS_FOR_NEW
(
sha256
)
;
DEFINE_CONSTS_FOR_NEW
(
sha384
)
;
DEFINE_CONSTS_FOR_NEW
(
sha512
)
;
DEFINE_CONSTS_FOR_NEW
(
md5
)
DEFINE_CONSTS_FOR_NEW
(
sha1
)
DEFINE_CONSTS_FOR_NEW
(
sha224
)
DEFINE_CONSTS_FOR_NEW
(
sha256
)
DEFINE_CONSTS_FOR_NEW
(
sha384
)
DEFINE_CONSTS_FOR_NEW
(
sha512
)
static
EVPobject
*
...
...
@@ -101,7 +101,7 @@ EVP_digest(EVPobject *self, PyObject *args)
EVP_MD_CTX_copy
(
&
temp_ctx
,
&
self
->
ctx
);
digest_size
=
EVP_MD_CTX_size
(
&
temp_ctx
);
EVP_DigestFinal
(
&
temp_ctx
,
(
char
*
)
digest
,
NULL
);
EVP_DigestFinal
(
&
temp_ctx
,
digest
,
NULL
);
retval
=
PyString_FromStringAndSize
((
const
char
*
)
digest
,
digest_size
);
EVP_MD_CTX_cleanup
(
&
temp_ctx
);
...
...
@@ -329,7 +329,7 @@ static PyTypeObject EVPtype = {
static
PyObject
*
EVPnew
(
PyObject
*
name_obj
,
const
EVP_MD
*
digest
,
const
EVP_MD_CTX
*
initial_ctx
,
const
char
*
cp
,
unsigned
int
len
)
const
unsigned
char
*
cp
,
unsigned
int
len
)
{
EVPobject
*
self
;
...
...
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