| Index: openssl/crypto/asn1/a_int.c
|
| ===================================================================
|
| --- openssl/crypto/asn1/a_int.c (revision 105093)
|
| +++ openssl/crypto/asn1/a_int.c (working copy)
|
| @@ -61,10 +61,10 @@
|
| #include <openssl/asn1.h>
|
| #include <openssl/bn.h>
|
|
|
| -ASN1_INTEGER *ASN1_INTEGER_dup(ASN1_INTEGER *x)
|
| +ASN1_INTEGER *ASN1_INTEGER_dup(const ASN1_INTEGER *x)
|
| { return M_ASN1_INTEGER_dup(x);}
|
|
|
| -int ASN1_INTEGER_cmp(ASN1_INTEGER *x, ASN1_INTEGER *y)
|
| +int ASN1_INTEGER_cmp(const ASN1_INTEGER *x, const ASN1_INTEGER *y)
|
| {
|
| int neg, ret;
|
| /* Compare signs */
|
| @@ -273,7 +273,7 @@
|
| {
|
| ASN1_INTEGER *ret=NULL;
|
| const unsigned char *p;
|
| - unsigned char *to,*s;
|
| + unsigned char *s;
|
| long len;
|
| int inf,tag,xclass;
|
| int i;
|
| @@ -308,7 +308,6 @@
|
| i=ERR_R_MALLOC_FAILURE;
|
| goto err;
|
| }
|
| - to=s;
|
| ret->type=V_ASN1_INTEGER;
|
| if(len) {
|
| if ((*p == 0) && (len != 1))
|
| @@ -373,7 +372,7 @@
|
| return(1);
|
| }
|
|
|
| -long ASN1_INTEGER_get(ASN1_INTEGER *a)
|
| +long ASN1_INTEGER_get(const ASN1_INTEGER *a)
|
| {
|
| int neg=0,i;
|
| long r=0;
|
| @@ -402,7 +401,7 @@
|
| return(r);
|
| }
|
|
|
| -ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai)
|
| +ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai)
|
| {
|
| ASN1_INTEGER *ret;
|
| int len,j;
|
| @@ -444,7 +443,7 @@
|
| return(NULL);
|
| }
|
|
|
| -BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn)
|
| +BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn)
|
| {
|
| BIGNUM *ret;
|
|
|
|
|