diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-02-16 21:42:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-02-16 21:42:48 +0000 |
commit | b5d5c0a21f8fde538ad71bc024cba442ed44ba8d (patch) | |
tree | 2efd3abe3c70e72cc0041232c80fdf20dde12e67 /crypto/x509/x509_cmp.c | |
parent | f8ea4757cc76fa49231d1118bb2214d4463003c1 (diff) |
PR: 1843
Use correct array size for SHA1 hash.
Diffstat (limited to 'crypto/x509/x509_cmp.c')
-rw-r--r-- | crypto/x509/x509_cmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509_cmp.c b/crypto/x509/x509_cmp.c index ee234b04ad..306d4b2d73 100644 --- 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); |