2 * Copyright (c) 1995-2002, Index Data
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: ber_bool.c,v 1.12 2002-07-25 12:51:08 adam Exp $
16 int ber_boolean(ODR o, int *val)
23 if (ber_enclen(o, 1, 1, 1) != 1)
25 if (odr_putc(o, *val) < 0)
28 fprintf(stderr, "[val=%d]\n", *val);
32 if ((res = ber_declen(o->bp, &len)) < 0)
46 fprintf(stderr, "[val=%d]\n", *val);
51 default: o->error = OOTHER; return 0;