This commit was manufactured by cvs2svn to create branch
[oweals/openssl.git] / crypto / dsa / dsa_asn1.c
index 134fbeebf8ca984bead3d7e1cfeb054c77075abd..a76c8f7c7eb389e3d34a3bfb67b83dceda456f1e 100644 (file)
@@ -29,7 +29,7 @@ void DSA_SIG_free(DSA_SIG *r)
        OPENSSL_free(r);
 }
 
-int i2d_DSA_SIG(const DSA_SIG *v, unsigned char **pp)
+int i2d_DSA_SIG(DSA_SIG *v, unsigned char **pp)
 {
        int t=0,len;
        ASN1_INTEGER rbs,sbs;
@@ -69,7 +69,7 @@ int i2d_DSA_SIG(const DSA_SIG *v, unsigned char **pp)
        return(t);
 }
 
-DSA_SIG *d2i_DSA_SIG(DSA_SIG **a, const unsigned char **pp, long length)
+DSA_SIG *d2i_DSA_SIG(DSA_SIG **a, unsigned char **pp, long length)
 {
        int i=ERR_R_NESTED_ASN1_ERROR;
        ASN1_INTEGER *bs=NULL;
@@ -84,7 +84,6 @@ DSA_SIG *d2i_DSA_SIG(DSA_SIG **a, const unsigned char **pp, long length)
        if ((ret->s=BN_bin2bn(bs->data,bs->length,ret->s)) == NULL)
                goto err_bn;
        M_ASN1_BIT_STRING_free(bs);
-       bs = NULL;
        M_ASN1_D2I_Finish_2(a);
 
 err_bn: