* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: odr_util.c,v 1.22 2003-01-06 08:20:28 adam Exp $
+ * $Id: odr_util.c,v 1.25 2003-05-24 19:20:14 adam Exp $
*/
#if HAVE_CONFIG_H
#include <config.h>
return odr_getoidbystr_nmem (o->mem, str);
}
-
+int odr_missing(ODR o, int opt, const char *name)
+{
+ if (o->error)
+ return 0;
+ if (!opt)
+ {
+ odr_seterror(o, OREQUIRED, 53);
+ odr_setelement(o, name);
+ }
+ return opt;
+}