You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

asn1.h 614B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _GPXE_ASN1_H
  2. #define _GPXE_ASN1_H
  3. /** @file
  4. *
  5. * ASN.1 encoding
  6. *
  7. */
  8. #define ASN1_INTEGER 0x02
  9. #define ASN1_BIT_STRING 0x03
  10. #define ASN1_OCTET_STRING 0x04
  11. #define ASN1_NULL 0x05
  12. #define ASN1_OID 0x06
  13. #define ASN1_SEQUENCE 0x30
  14. #define ASN1_IP_ADDRESS 0x40
  15. #define ASN1_EXPLICIT_TAG 0xa0
  16. /**
  17. * A DER-encoded ASN.1 object cursor
  18. */
  19. struct asn1_cursor {
  20. /** Start of data */
  21. void *data;
  22. /** Length of data */
  23. size_t len;
  24. };
  25. extern int asn1_enter ( struct asn1_cursor *cursor, unsigned int type );
  26. extern int asn1_skip ( struct asn1_cursor *cursor, unsigned int type );
  27. #endif /* _GPXE_ASN1_H */