1 /* $NetBSD: kcm-protos.h,v 1.2 2019/12/15 22:50:46 christos Exp $ */ 2 3 /* This is a generated file */ 4 #ifndef __kcm_protos_h__ 5 #define __kcm_protos_h__ 6 #ifndef DOXY 7 8 #include <stdarg.h> 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 krb5_error_code 15 kcm_access ( 16 krb5_context /*context*/, 17 kcm_client */*client*/, 18 kcm_operation /*opcode*/, 19 kcm_ccache /*ccache*/); 20 21 krb5_error_code 22 kcm_ccache_acquire ( 23 krb5_context /*context*/, 24 kcm_ccache /*ccache*/, 25 krb5_creds **/*credp*/); 26 27 krb5_error_code 28 kcm_ccache_destroy ( 29 krb5_context /*context*/, 30 const char */*name*/); 31 32 krb5_error_code 33 kcm_ccache_destroy_client ( 34 krb5_context /*context*/, 35 kcm_client */*client*/, 36 const char */*name*/); 37 38 krb5_error_code 39 kcm_ccache_destroy_if_empty ( 40 krb5_context /*context*/, 41 kcm_ccache /*ccache*/); 42 43 krb5_error_code 44 kcm_ccache_enqueue_default ( 45 krb5_context /*context*/, 46 kcm_ccache /*ccache*/, 47 krb5_creds */*newcred*/); 48 49 struct kcm_creds * 50 kcm_ccache_find_cred_uuid ( 51 krb5_context /*context*/, 52 kcm_ccache /*ccache*/, 53 kcmuuid_t /*uuid*/); 54 55 char * 56 kcm_ccache_first_name (kcm_client */*client*/); 57 58 krb5_error_code 59 kcm_ccache_gen_new ( 60 krb5_context /*context*/, 61 pid_t /*pid*/, 62 uid_t /*uid*/, 63 gid_t /*gid*/, 64 kcm_ccache */*ccache*/); 65 66 krb5_error_code 67 kcm_ccache_get_uuids ( 68 krb5_context /*context*/, 69 kcm_client */*client*/, 70 kcm_operation /*opcode*/, 71 krb5_storage */*sp*/); 72 73 krb5_error_code 74 kcm_ccache_new ( 75 krb5_context /*context*/, 76 const char */*name*/, 77 kcm_ccache */*ccache*/); 78 79 krb5_error_code 80 kcm_ccache_new_client ( 81 krb5_context /*context*/, 82 kcm_client */*client*/, 83 const char */*name*/, 84 kcm_ccache */*ccache_p*/); 85 86 char *kcm_ccache_nextid ( 87 pid_t /*pid*/, 88 uid_t /*uid*/, 89 gid_t /*gid*/); 90 91 krb5_error_code 92 kcm_ccache_refresh ( 93 krb5_context /*context*/, 94 kcm_ccache /*ccache*/, 95 krb5_creds **/*credp*/); 96 97 krb5_error_code 98 kcm_ccache_remove_cred ( 99 krb5_context /*context*/, 100 kcm_ccache /*ccache*/, 101 krb5_flags /*whichfields*/, 102 const krb5_creds */*mcreds*/); 103 104 krb5_error_code 105 kcm_ccache_remove_cred_internal ( 106 krb5_context /*context*/, 107 kcm_ccache /*ccache*/, 108 krb5_flags /*whichfields*/, 109 const krb5_creds */*mcreds*/); 110 111 krb5_error_code 112 kcm_ccache_remove_creds ( 113 krb5_context /*context*/, 114 kcm_ccache /*ccache*/); 115 116 krb5_error_code 117 kcm_ccache_remove_creds_internal ( 118 krb5_context /*context*/, 119 kcm_ccache /*ccache*/); 120 121 krb5_error_code 122 kcm_ccache_resolve ( 123 krb5_context /*context*/, 124 const char */*name*/, 125 kcm_ccache */*ccache*/); 126 127 krb5_error_code 128 kcm_ccache_resolve_by_uuid ( 129 krb5_context /*context*/, 130 kcmuuid_t /*uuid*/, 131 kcm_ccache */*ccache*/); 132 133 krb5_error_code 134 kcm_ccache_resolve_client ( 135 krb5_context /*context*/, 136 kcm_client */*client*/, 137 kcm_operation /*opcode*/, 138 const char */*name*/, 139 kcm_ccache */*ccache*/); 140 141 krb5_error_code 142 kcm_ccache_retrieve_cred ( 143 krb5_context /*context*/, 144 kcm_ccache /*ccache*/, 145 krb5_flags /*whichfields*/, 146 const krb5_creds */*mcreds*/, 147 krb5_creds **/*credp*/); 148 149 krb5_error_code 150 kcm_ccache_retrieve_cred_internal ( 151 krb5_context /*context*/, 152 kcm_ccache /*ccache*/, 153 krb5_flags /*whichfields*/, 154 const krb5_creds */*mcreds*/, 155 krb5_creds **/*creds*/); 156 157 krb5_error_code 158 kcm_ccache_store_cred ( 159 krb5_context /*context*/, 160 kcm_ccache /*ccache*/, 161 krb5_creds */*creds*/, 162 int /*copy*/); 163 164 krb5_error_code 165 kcm_ccache_store_cred_internal ( 166 krb5_context /*context*/, 167 kcm_ccache /*ccache*/, 168 krb5_creds */*creds*/, 169 int /*copy*/, 170 krb5_creds **/*credp*/); 171 172 krb5_error_code 173 kcm_chmod ( 174 krb5_context /*context*/, 175 kcm_client */*client*/, 176 kcm_ccache /*ccache*/, 177 uint16_t /*mode*/); 178 179 krb5_error_code 180 kcm_chown ( 181 krb5_context /*context*/, 182 kcm_client */*client*/, 183 kcm_ccache /*ccache*/, 184 uid_t /*uid*/, 185 gid_t /*gid*/); 186 187 krb5_error_code 188 kcm_cleanup_events ( 189 krb5_context /*context*/, 190 kcm_ccache /*ccache*/); 191 192 void 193 kcm_configure ( 194 int /*argc*/, 195 char **/*argv*/); 196 197 krb5_error_code 198 kcm_debug_ccache (krb5_context /*context*/); 199 200 krb5_error_code 201 kcm_debug_events (krb5_context /*context*/); 202 203 krb5_error_code 204 kcm_dispatch ( 205 krb5_context /*context*/, 206 kcm_client */*client*/, 207 krb5_data */*req_data*/, 208 krb5_data */*resp_data*/); 209 210 krb5_error_code 211 kcm_enqueue_event ( 212 krb5_context /*context*/, 213 kcm_event */*event*/); 214 215 krb5_error_code 216 kcm_enqueue_event_internal ( 217 krb5_context /*context*/, 218 kcm_event */*event*/); 219 220 krb5_error_code 221 kcm_enqueue_event_relative ( 222 krb5_context /*context*/, 223 kcm_event */*event*/); 224 225 krb5_error_code 226 kcm_internal_ccache ( 227 krb5_context /*context*/, 228 kcm_ccache /*c*/, 229 krb5_ccache /*id*/); 230 231 int 232 kcm_is_same_session ( 233 kcm_client */*client*/, 234 uid_t /*uid*/, 235 pid_t /*session*/); 236 237 void 238 kcm_log ( 239 int /*level*/, 240 const char */*fmt*/, 241 ...); 242 243 char* 244 kcm_log_msg ( 245 int /*level*/, 246 const char */*fmt*/, 247 ...); 248 249 char* 250 kcm_log_msg_va ( 251 int /*level*/, 252 const char */*fmt*/, 253 va_list /*ap*/); 254 255 const char * 256 kcm_op2string (kcm_operation /*opcode*/); 257 258 void 259 kcm_openlog (void); 260 261 krb5_error_code 262 kcm_release_ccache ( 263 krb5_context /*context*/, 264 kcm_ccache /*c*/); 265 266 krb5_error_code 267 kcm_remove_event ( 268 krb5_context /*context*/, 269 kcm_event */*event*/); 270 271 krb5_error_code 272 kcm_retain_ccache ( 273 krb5_context /*context*/, 274 kcm_ccache /*ccache*/); 275 276 krb5_error_code 277 kcm_run_events ( 278 krb5_context /*context*/, 279 time_t /*now*/); 280 281 void 282 kcm_service ( 283 void */*ctx*/, 284 const heim_idata */*req*/, 285 const heim_icred /*cred*/, 286 heim_ipc_complete /*complete*/, 287 heim_sipc_call /*cctx*/); 288 289 void 290 kcm_session_add (pid_t /*session_id*/); 291 292 void 293 kcm_session_setup_handler (void); 294 295 krb5_error_code 296 kcm_zero_ccache_data ( 297 krb5_context /*context*/, 298 kcm_ccache /*cache*/); 299 300 krb5_error_code 301 kcm_zero_ccache_data_internal ( 302 krb5_context /*context*/, 303 kcm_ccache_data */*cache*/); 304 305 #ifdef __cplusplus 306 } 307 #endif 308 309 #endif /* DOXY */ 310 #endif /* __kcm_protos_h__ */ 311