/*
- * Copyright (c) 1995-2003, Index Data
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
*
- * $Id: odr_oid.c,v 1.1 2003-10-27 12:21:33 adam Exp $
+ * $Id: odr_oid.c,v 1.6 2005-05-26 21:46:40 adam Exp $
+ */
+/**
+ * \file odr_oid.c
+ * \brief Implements ODR OID codec
*/
#if HAVE_CONFIG_H
#include <config.h>
int i;
odr_prname(o, name);
- fprintf(o->print, "OID:");
+ odr_printf(o, "OID:");
for (i = 0; (*p)[i] > -1; i++)
- fprintf(o->print, " %d", (*p)[i]);
- fprintf(o->print, "\n");
+ odr_printf(o, " %d", (*p)[i]);
+ odr_printf(o, "\n");
return 1;
}
if (o->direction == ODR_DECODE)
*p = (int *)odr_malloc(o, OID_SIZE * sizeof(**p));
- return ber_oidc(o, *p);
+ return ber_oidc(o, *p, OID_SIZE);
}