| Index: openssl/crypto/asn1/tasn_enc.c
|
| ===================================================================
|
| --- openssl/crypto/asn1/tasn_enc.c (revision 105093)
|
| +++ openssl/crypto/asn1/tasn_enc.c (working copy)
|
| @@ -158,7 +158,7 @@
|
| return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
|
|
|
| case ASN1_ITYPE_CHOICE:
|
| - if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it))
|
| + if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
|
| return 0;
|
| i = asn1_get_choice_selector(pval, it);
|
| if ((i >= 0) && (i < it->tcount))
|
| @@ -171,7 +171,7 @@
|
| -1, aclass);
|
| }
|
| /* Fixme: error condition if selector out of range */
|
| - if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it))
|
| + if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
|
| return 0;
|
| break;
|
|
|
| @@ -216,7 +216,7 @@
|
| aclass = (aclass & ~ASN1_TFLG_TAG_CLASS)
|
| | V_ASN1_UNIVERSAL;
|
| }
|
| - if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it))
|
| + if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
|
| return 0;
|
| /* First work out sequence content length */
|
| for (i = 0, tt = it->templates; i < it->tcount; tt++, i++)
|
| @@ -250,7 +250,7 @@
|
| }
|
| if (ndef == 2)
|
| ASN1_put_eoc(out);
|
| - if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it))
|
| + if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
|
| return 0;
|
| return seqlen;
|
|
|
| @@ -569,7 +569,8 @@
|
| ASN1_STRING *strtmp;
|
| ASN1_OBJECT *otmp;
|
| int utype;
|
| - unsigned char *cont, c;
|
| + const unsigned char *cont;
|
| + unsigned char c;
|
| int len;
|
| const ASN1_PRIMITIVE_FUNCS *pf;
|
| pf = it->funcs;
|
|
|