vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 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 | |
vlm | af9cf13 | 2004-08-19 13:26:36 +0000 | [diff] [blame] | 10 | /* |
| 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 | */ |
| 15 | typedef int BOOLEAN_t; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16 | |
| 17 | extern asn1_TYPE_descriptor_t asn1_DEF_BOOLEAN; |
| 18 | |
| 19 | ber_type_decoder_f BOOLEAN_decode_ber; |
| 20 | der_type_encoder_f BOOLEAN_encode_der; |
| 21 | asn_struct_print_f BOOLEAN_print; |
| 22 | asn_struct_free_f BOOLEAN_free; |
| 23 | |
| 24 | #endif /* _BOOLEAN_H_ */ |