int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj)
{
    char obj_txt[128];

    int len = OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0);
    BIO_write(bio, obj_txt, len);
    BIO_write(bio, "\n", 1);

    return 1;
}
int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj)
{
    char obj_txt[128];

    OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0);
    BIO_printf(bio, "%s\n", obj_txt);

    return 1;
}
    int len = OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0);

    BIO_write(bio, obj_txt, len);

    BIO_write(bio, "\n", 1);

    OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0);

    BIO_printf(bio, "%s\n", obj_txt);

int len = 
w
e
, len);
    BIO_write(bio, "\n", 1
p
f
%s
obj_txt