Add error handling in dsa_main and ASN1_i2d_bio.