File: encticketpart.c.texi

package info (click to toggle)
shishi 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 22,144 kB
  • ctags: 7,865
  • sloc: ansic: 61,153; sh: 12,212; yacc: 1,219; makefile: 1,164; perl: 624; sed: 16
file content (163 lines) | stat: -rw-r--r-- 6,523 bytes parent folder | download | duplicates (6)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
@subheading shishi_encticketpart_get_key
@anchor{shishi_encticketpart_get_key}
@deftypefun {int} {shishi_encticketpart_get_key} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, Shishi_key ** @var{key})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{key}: newly allocated key.

Extract the session key in the Ticket.

@strong{Return value:} Returns @code{SHISHI_OK} iff successful.
@end deftypefun

@subheading shishi_encticketpart_key_set
@anchor{shishi_encticketpart_key_set}
@deftypefun {int} {shishi_encticketpart_key_set} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, Shishi_key * @var{key})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{key}: key handle with information to store in encticketpart.

Set the EncTicketPart.key field to key type and value of supplied
key.

@strong{Return value:} Returns @code{SHISHI_OK} iff successful.
@end deftypefun

@subheading shishi_encticketpart_flags_set
@anchor{shishi_encticketpart_flags_set}
@deftypefun {int} {shishi_encticketpart_flags_set} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, int @var{flags})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{flags}: flags to set in encticketpart.

Set the EncTicketPart.flags to supplied value.

@strong{Return value:} Returns @code{SHISHI_OK} iff successful.
@end deftypefun

@subheading shishi_encticketpart_crealm_set
@anchor{shishi_encticketpart_crealm_set}
@deftypefun {int} {shishi_encticketpart_crealm_set} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, const char * @var{realm})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{realm}: input array with name of realm.

Set the realm field in the KDC-REQ.

@strong{Return value:} Returns SHISHI_OK iff successful.
@end deftypefun

@subheading shishi_encticketpart_cname_set
@anchor{shishi_encticketpart_cname_set}
@deftypefun {int} {shishi_encticketpart_cname_set} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, Shishi_name_type @var{name_type}, const char * @var{principal})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{name_type}: type of principial, see Shishi_name_type, usually
SHISHI_NT_UNKNOWN.

@var{principal}: input array with principal name.

Set the client name field in the EncTicketPart.

@strong{Return value:} Returns SHISHI_OK iff successful.
@end deftypefun

@subheading shishi_encticketpart_transited_set
@anchor{shishi_encticketpart_transited_set}
@deftypefun {int} {shishi_encticketpart_transited_set} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, int32_t @var{trtype}, const char * @var{trdata}, size_t @var{trdatalen})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{trtype}: transitedencoding type, e.g. SHISHI_TR_DOMAIN_X500_COMPRESS.

@var{trdata}: actual transited realm data.

@var{trdatalen}: length of actual transited realm data.

Set the EncTicketPart.transited field to supplied value.

@strong{Return value:} Returns @code{SHISHI_OK} iff successful.
@end deftypefun

@subheading shishi_encticketpart_authtime_set
@anchor{shishi_encticketpart_authtime_set}
@deftypefun {int} {shishi_encticketpart_authtime_set} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, const char * @var{authtime})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{authtime}: character buffer containing a generalized time string.

Set the EncTicketPart.authtime to supplied value.

@strong{Return value:} Returns @code{SHISHI_OK} iff successful.
@end deftypefun

@subheading shishi_encticketpart_endtime_set
@anchor{shishi_encticketpart_endtime_set}
@deftypefun {int} {shishi_encticketpart_endtime_set} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, const char * @var{endtime})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{encticketpart}: input EncTicketPart variable.

@var{endtime}: character buffer containing a generalized time string.

Set the EncTicketPart.endtime to supplied value.

@strong{Return value:} Returns @code{SHISHI_OK} iff successful.
@end deftypefun

@subheading shishi_encticketpart_client
@anchor{shishi_encticketpart_client}
@deftypefun {int} {shishi_encticketpart_client} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, char ** @var{client}, size_t * @var{clientlen})
@var{handle}: Shishi library handle create by @code{shishi_init()}.

@var{encticketpart}: EncTicketPart variable to get client name from.

@var{client}: pointer to newly allocated zero terminated string containing
principal name.  May be @code{NULL} (to only populate @code{clientlen}).

@var{clientlen}: pointer to length of @code{client} on output, excluding terminating
zero.  May be @code{NULL} (to only populate @code{client}).

Represent client principal name in EncTicketPart as zero-terminated
string.  The string is allocate by this function, and it is the
responsibility of the caller to deallocate it.  Note that the
output length @code{clientlen} does not include the terminating zero.

@strong{Return value:} Returns SHISHI_OK iff successful.
@end deftypefun

@subheading shishi_encticketpart_clientrealm
@anchor{shishi_encticketpart_clientrealm}
@deftypefun {int} {shishi_encticketpart_clientrealm} (Shishi * @var{handle}, Shishi_asn1 @var{encticketpart}, char ** @var{client}, size_t * @var{clientlen})
@var{handle}: Shishi library handle create by @code{shishi_init()}.

@var{encticketpart}: EncTicketPart variable to get client name and realm from.

@var{client}: pointer to newly allocated zero terminated string containing
principal name and realm.  May be @code{NULL} (to only populate @code{clientlen}).

@var{clientlen}: pointer to length of @code{client} on output, excluding terminating
zero.  May be @code{NULL} (to only populate @code{client}).

Convert cname and realm fields from EncTicketPart to printable
principal name format.  The string is allocate by this function,
and it is the responsibility of the caller to deallocate it.  Note
that the output length @code{clientlen} does not include the terminating
zero.

@strong{Return value:} Returns SHISHI_OK iff successful.
@end deftypefun