asn_1.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. ASN.1 routines, implementation for libdvben50221
  3. an implementation for the High Level Common Interface
  4. Copyright (C) 2004, 2005 Manu Abraham <abraham.manu@gmail.com>
  5. Copyright (C) 2006 Andrew de Quincey (adq_dvb@lidskialf.net)
  6. This library is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU Lesser General Public License as
  8. published by the Free Software Foundation; either version 2.1 of
  9. the License, or (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with this library; if not, write to the Free Software
  16. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef __ASN_1_H__
  19. #define __ASN_1_H__
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #include <stdlib.h>
  24. #include <stdint.h>
  25. int asn_1_decode(uint16_t * length, uint8_t * asn_1_array,
  26. uint32_t asn_1_array_len);
  27. int asn_1_encode(uint16_t length, uint8_t * asn_1_array,
  28. uint32_t asn_1_array_len);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif