Fix additional cases where krb5.h is included before k5-int.h. In most cases,
[krb5.git] / src / tests / asn.1 / utility.h
1 #ifndef __UTILITY_H__
2 #define __UTILITY_H__
3
4 #include "krbasn1.h"
5 #include "asn1buf.h"
6
7 asn1_error_code asn1_krb5_data_unparse
8         (const krb5_data *code, char **s);
9 /* modifies  *s;
10    effects   Instantiates *s with a string representation of the series
11               of hex octets in *code.  (e.g. "02 02 00 7F")  If code==NULL,
12               the string rep is "<NULL>".  If code is empty (it contains no
13               data or has length <= 0), the string rep is "<EMPTY>".
14              If *s is non-NULL, then its currently-allocated storage
15               will be freed prior to the instantiation.
16              Returns ENOMEM or the string rep cannot be created. */
17
18 krb5_error_code krb5_data_parse
19         (krb5_data *d, const char *s);
20 /* effects  Parses character string *s into krb5_data *d. */
21
22 krb5_error_code krb5_data_hex_parse
23         (krb5_data *d, const char *s);
24 /* requires  *s is the string representation of a sequence of
25               hexadecimal octets.  (e.g. "02 01 00")
26    effects  Parses *s into krb5_data *d. */
27
28 void asn1buf_print
29         (const asn1buf *buf);
30
31 #endif