- int i;
- odr_prname(o, name);
- odr_printf(o, "OCTETSTRING(len=%d)", (*p)->len);
- for (i = 0; i<(*p)->len; i++)
- {
- if (i < 5 || i > ((*p)->len - 4))
- {
- odr_printf(o, " %02X", (*p)->buf[i]);
- }
- else if (i == 5)
- odr_printf(o, " .. ");
- }
+ odr_prname(o, name);
+ odr_printf(o, "OCTETSTRING(len=%d) ", (*p)->len);
+
+ o->op->stream_write(o, o->op->print, ODR_OCTETSTRING,
+ (char*) (*p)->buf, (*p)->len);