- int i;
- odr_prname(o, name);
- fprintf(o->print, "OCTETSTRING(len=%d)", (*p)->len);
- for (i = 0; i<(*p)->len; i++)
- {
- if (i < 5 || i > ((*p)->len - 4))
- {
- fprintf (o->print, " %02X", (*p)->buf[i]);
- }
- else if (i == 5)
- fprintf (o->print, " .. ");
- }
- fprintf(o->print, "\n");
- return 1;
+ 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);
+ odr_printf(o, "\n");
+ return 1;