提交 b5d5c0a2 编写于 作者: D Dr. Stephen Henson

PR: 1843

Use correct array size for SHA1 hash.
上级 f8ea4757
...@@ -201,7 +201,7 @@ int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b) ...@@ -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 X509_NAME_hash(X509_NAME *x)
{ {
unsigned long ret=0; unsigned long ret=0;
unsigned char md[16]; unsigned char md[SHA_DIGEST_LENGTH];
/* Make sure X509_NAME structure contains valid cached encoding */ /* Make sure X509_NAME structure contains valid cached encoding */
i2d_X509_NAME(x,NULL); i2d_X509_NAME(x,NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册