projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Harmonise symhacks.h in this branch with lower versions.
[oweals/openssl.git]
/
crypto
/
asn1
/
a_int.c
diff --git
a/crypto/asn1/a_int.c
b/crypto/asn1/a_int.c
index c6fd204ae3b7221d5ab5323f68bc0c6b7fff4818..ad0d2506f63203679814cd36018f1dc9c4221b91 100644
(file)
--- a/
crypto/asn1/a_int.c
+++ b/
crypto/asn1/a_int.c
@@
-273,7
+273,7
@@
ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp,
{
ASN1_INTEGER *ret=NULL;
const unsigned char *p;
{
ASN1_INTEGER *ret=NULL;
const unsigned char *p;
- unsigned char *
to,*
s;
+ unsigned char *s;
long len;
int inf,tag,xclass;
int i;
long len;
int inf,tag,xclass;
int i;
@@
-308,7
+308,6
@@
ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp,
i=ERR_R_MALLOC_FAILURE;
goto err;
}
i=ERR_R_MALLOC_FAILURE;
goto err;
}
- to=s;
ret->type=V_ASN1_INTEGER;
if(len) {
if ((*p == 0) && (len != 1))
ret->type=V_ASN1_INTEGER;
if(len) {
if ((*p == 0) && (len != 1))
@@
-387,8
+386,8
@@
long ASN1_INTEGER_get(const ASN1_INTEGER *a)
if (a->length > (int)sizeof(long))
{
if (a->length > (int)sizeof(long))
{
- /* hmm... a bit ugly */
- return
(0xffffffffL)
;
+ /* hmm... a bit ugly
, return all ones
*/
+ return
-1
;
}
if (a->data == NULL)
return 0;
}
if (a->data == NULL)
return 0;