Harald Welte | 30afef3 | 2015-08-30 12:28:29 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Harald Welte | 27f9c4a | 2015-08-30 22:47:18 +0200 | [diff] [blame] | 3 | #include <unistd.h> |
Harald Welte | 30afef3 | 2015-08-30 12:28:29 +0200 | [diff] [blame] | 4 | |
Harald Welte | 27f9c4a | 2015-08-30 22:47:18 +0200 | [diff] [blame] | 5 | #include "BIT_STRING.h" |
| 6 | #include "OCTET_STRING.h" |
Harald Welte | 30afef3 | 2015-08-30 12:28:29 +0200 | [diff] [blame] | 7 | |
Harald Welte | 27f9c4a | 2015-08-30 22:47:18 +0200 | [diff] [blame] | 8 | void asn1_u32_to_bitstring(BIT_STRING_t *bitstr, uint32_t *in); |
Harald Welte | 0bb1261 | 2015-10-06 22:08:54 +0200 | [diff] [blame^] | 9 | void asn1_u24_to_bitstring(BIT_STRING_t *bitstr, uint32_t *in); |
Harald Welte | 27f9c4a | 2015-08-30 22:47:18 +0200 | [diff] [blame] | 10 | int asn1_strncpy(char *out, const OCTET_STRING_t *in, size_t n); |
| 11 | uint16_t asn1str_to_u16(const OCTET_STRING_t *in); |
| 12 | uint8_t asn1str_to_u8(const OCTET_STRING_t *in); |
| 13 | uint32_t asn1bitstr_to_u32(const BIT_STRING_t *in); |