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