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

Fix to i2d_DSAPublicKey() to return the correct length.

Submitted by: Jeon KyoungHo <khjeon@sds.samsung.co.kr>
上级 a9ffce0a
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
Changes between 0.9.3a and 0.9.4 Changes between 0.9.3a and 0.9.4
*) Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value
for the encoded length.
[Jeon KyoungHo <khjeon@sds.samsung.co.kr>]
*) Add initial documentation of the X509V3 functions. *) Add initial documentation of the X509V3 functions.
[Steve Henson] [Steve Henson]
......
...@@ -123,6 +123,7 @@ int i2d_DSAPublicKey(DSA *a, unsigned char **pp) ...@@ -123,6 +123,7 @@ int i2d_DSAPublicKey(DSA *a, unsigned char **pp)
} }
Free((char *)bs.data); Free((char *)bs.data);
*pp=p; *pp=p;
return(t); if(all) return(t);
else return(tot);
} }
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册