| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef _DER_ENCODER_H_ |
| 6 |
#define _DER_ENCODER_H_ |
| 7 |
|
| 8 |
#include <asn_application.h> |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
struct asn_TYPE_descriptor_s; |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
asn_enc_rval_t der_encode(struct asn_TYPE_descriptor_s *type_descriptor, |
| 21 |
void *struct_ptr, |
| 22 |
asn_app_consume_bytes_f *consume_bytes_cb, |
| 23 |
void *app_key |
| 24 |
); |
| 25 |
|
| 26 |
|
| 27 |
asn_enc_rval_t der_encode_to_buffer( |
| 28 |
struct asn_TYPE_descriptor_s *type_descriptor, |
| 29 |
void *struct_ptr, |
| 30 |
void *buffer, |
| 31 |
size_t buffer_size |
| 32 |
); |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
typedef asn_enc_rval_t (der_type_encoder_f)( |
| 38 |
struct asn_TYPE_descriptor_s *type_descriptor, |
| 39 |
void *struct_ptr, |
| 40 |
int tag_mode, |
| 41 |
ber_tlv_tag_t tag, |
| 42 |
asn_app_consume_bytes_f *consume_bytes_cb, |
| 43 |
void *app_key |
| 44 |
); |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
ssize_t der_write_tags( |
| 55 |
struct asn_TYPE_descriptor_s *type_descriptor, |
| 56 |
size_t struct_length, |
| 57 |
int tag_mode, |
| 58 |
int last_tag_form, |
| 59 |
ber_tlv_tag_t tag, |
| 60 |
asn_app_consume_bytes_f *consume_bytes_cb, |
| 61 |
void *app_key |
| 62 |
); |
| 63 |
|
| 64 |
#ifdef __cplusplus |
| 65 |
} |
| 66 |
#endif |
| 67 |
|
| 68 |
#endif |