Add i2d_re_X509_tbs
[openssl.git] / crypto / asn1 / x_x509.c
index fd5e6c6..7d33c38 100644 (file)
@@ -193,6 +193,12 @@ int i2d_X509_AUX(X509 *a, unsigned char **pp)
        return length;
 }
 
+int i2d_re_X509_tbs(X509 *x, unsigned char **pp)
+       {
+       x->cert_info->enc.modified = 1;
+       return i2d_X509_CINF(x->cert_info, pp);
+       }
+
 void X509_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg,
                                const X509 *x)
        {