blob: 6ad69a451b4f5c40bfe54dab8256d3c0a5b4dde2 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001/*-
2 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef _BOOLEAN_H_
6#define _BOOLEAN_H_
7
8#include <constr_TYPE.h>
9
Lev Walkin958d7a82004-08-19 13:26:36 +000010/*
11 * The underlying integer may contain various values, but everything
12 * non-zero is capped to 0xff by the DER encoder. The BER decoder may
13 * yield non-zero values different from 1, beware.
14 */
15typedef int BOOLEAN_t;
Lev Walkinf15320b2004-06-03 03:38:44 +000016
17extern asn1_TYPE_descriptor_t asn1_DEF_BOOLEAN;
18
19ber_type_decoder_f BOOLEAN_decode_ber;
20der_type_encoder_f BOOLEAN_encode_der;
21asn_struct_print_f BOOLEAN_print;
22asn_struct_free_f BOOLEAN_free;
23
24#endif /* _BOOLEAN_H_ */