a2d_ASN1_OBJECT
i = a2d_ASN1_OBJECT(NULL, 0, s, -1);
a2d_ASN1_OBJECT(p, i, s, -1);
int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);