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:
d5e7f2f
)
size_t doesn't compare less than zero...
author
Richard Levitte
<levitte@openssl.org>
Wed, 27 Jan 2010 01:18:21 +0000
(
01:18
+0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 27 Jan 2010 01:18:21 +0000
(
01:18
+0000)
engines/ccgost/gost94_keyx.c
patch
|
blob
|
history
diff --git
a/engines/ccgost/gost94_keyx.c
b/engines/ccgost/gost94_keyx.c
index 624be586a5bbceaab80417e8ffd6c2571b983f5b..a183edbe8b61ca63ce6bd9763e54065547f5d11a 100644
(file)
--- a/
engines/ccgost/gost94_keyx.c
+++ b/
engines/ccgost/gost94_keyx.c
@@
-177,7
+177,7
@@
int pkey_GOST94cp_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen,
ASN1_OBJECT_free(gkt->key_agreement_info->cipher);
gkt->key_agreement_info->cipher = OBJ_nid2obj(param->nid);
*outlen = i2d_GOST_KEY_TRANSPORT(gkt,out?&out:NULL);
- if (*outlen
<
= 0)
+ if (*outlen
=
= 0)
{
GOSTerr(GOST_F_PKEY_GOST94CP_ENCRYPT,GOST_R_ERROR_PACKING_KEY_TRANSPORT_INFO);
goto err;