projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Since return is inconsistent, I removed unnecessary parentheses and
[openssl.git]
/
crypto
/
dsa
/
dsa_asn1.c
diff --git
a/crypto/dsa/dsa_asn1.c
b/crypto/dsa/dsa_asn1.c
index 7de00c74407ee1295f69aecec084f5e9992998c9..86a7ee7b864752b76ba1f7b28a43b97050b459fb 100644
(file)
--- a/
crypto/dsa/dsa_asn1.c
+++ b/
crypto/dsa/dsa_asn1.c
@@
-111,7
+111,7
@@
int DSA_sign(int type, const unsigned char *dgst, int dlen,
unsigned char *sig, unsigned int *siglen, DSA *dsa)
{
DSA_SIG *s;
unsigned char *sig, unsigned int *siglen, DSA *dsa)
{
DSA_SIG *s;
- RAND_seed(dgst, dlen);
+
s = DSA_do_sign(dgst, dlen, dsa);
if (s == NULL) {
*siglen = 0;
s = DSA_do_sign(dgst, dlen, dsa);
if (s == NULL) {
*siglen = 0;
@@
-119,7
+119,7
@@
int DSA_sign(int type, const unsigned char *dgst, int dlen,
}
*siglen = i2d_DSA_SIG(s, &sig);
DSA_SIG_free(s);
}
*siglen = i2d_DSA_SIG(s, &sig);
DSA_SIG_free(s);
- return
(1)
;
+ return
1
;
}
/* data has already been hashed (probably with SHA or SHA-1). */
}
/* data has already been hashed (probably with SHA or SHA-1). */