comctl32/tests: Use CRT allocation functions.
[wine.git] / dlls / kerberos / unixlib.h
blobfcc0da308c588f35ea1aa063c423f5bcc8b4b29d
1 /*
2 * Copyright 2017 Dmitry Timoshkov
3 * Copyright 2017 George Popoff
4 * Copyright 2008 Robert Shearman for CodeWeavers
5 * Copyright 2017,2021 Hans Leidekker for CodeWeavers
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/unixlib.h"
24 #define KERBEROS_MAX_BUF 12000
26 struct accept_context_params
28 UINT64 credential;
29 UINT64 context;
30 BYTE *input_token;
31 ULONG input_token_length;
32 UINT64 *new_context;
33 BYTE *output_token;
34 ULONG *output_token_length;
35 ULONG *context_attr;
36 ULONG *expiry;
39 struct acquire_credentials_handle_params
41 const char *principal;
42 ULONG credential_use;
43 const char *username;
44 const char *password;
45 UINT64 *credential;
46 ULONG *expiry;
49 struct delete_context_params
51 UINT64 context;
54 struct free_credentials_handle_params
56 UINT64 credential;
59 struct initialize_context_params
61 UINT64 credential;
62 UINT64 context;
63 const char *target_name;
64 ULONG context_req;
65 BYTE *input_token;
66 ULONG input_token_length;
67 BYTE *output_token;
68 ULONG *output_token_length;
69 UINT64 *new_context;
70 ULONG *context_attr;
71 ULONG *expiry;
74 struct make_signature_params
76 UINT64 context;
77 BYTE *data;
78 ULONG data_length;
79 BYTE *token;
80 ULONG *token_length;
83 struct query_context_attributes_params
85 UINT64 context;
86 unsigned attr;
87 void *buf;
90 struct query_ticket_cache_params
92 KERB_QUERY_TKT_CACHE_EX_RESPONSE *resp;
93 ULONG *out_size;
96 struct seal_message_params
98 UINT64 context;
99 BYTE *data;
100 ULONG data_length;
101 BYTE *token;
102 ULONG *token_length;
103 unsigned qop;
106 struct unseal_message_params
108 UINT64 context;
109 BYTE *data;
110 ULONG data_length;
111 BYTE *token;
112 ULONG token_length;
113 ULONG *qop;
116 struct verify_signature_params
118 UINT64 context;
119 BYTE *data;
120 ULONG data_length;
121 BYTE *token;
122 ULONG token_length;
123 ULONG *qop;
126 enum unix_funcs
128 unix_process_attach,
129 unix_accept_context,
130 unix_acquire_credentials_handle,
131 unix_delete_context,
132 unix_free_credentials_handle,
133 unix_initialize_context,
134 unix_make_signature,
135 unix_query_context_attributes,
136 unix_query_ticket_cache,
137 unix_seal_message,
138 unix_unseal_message,
139 unix_verify_signature,
140 unix_funcs_count,
143 #define KRB5_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )