projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ea475
)
PR: 1843
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 16 Feb 2009 21:42:48 +0000
(21:42 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 16 Feb 2009 21:42:48 +0000
(21:42 +0000)
Use correct array size for SHA1 hash.
crypto/x509/x509_cmp.c
patch
|
blob
|
history
diff --git
a/crypto/x509/x509_cmp.c
b/crypto/x509/x509_cmp.c
index ee234b04ad1689ba6eebf3379460cafd8fa1cc67..306d4b2d735db1f7e13530a94071fee494d4d139 100644
(file)
--- a/
crypto/x509/x509_cmp.c
+++ b/
crypto/x509/x509_cmp.c
@@
-201,7
+201,7
@@
int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b)
unsigned long X509_NAME_hash(X509_NAME *x)
{
unsigned long ret=0;
- unsigned char md[
16
];
+ unsigned char md[
SHA_DIGEST_LENGTH
];
/* Make sure X509_NAME structure contains valid cached encoding */
i2d_X509_NAME(x,NULL);