asn1_enc_restore
int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval, const ASN1_ITEM *it);
i = asn1_enc_restore(&seqcontlen, out, pval, it);