Imported Upstream version 1.10.2
[platform/upstream/krb5.git] / src / kim / agent / mac / ServerDemux.h
1 /*
2  * Copyright 2008 Massachusetts Institute of Technology.
3  * All Rights Reserved.
4  *
5  * Export of this software from the United States of America may
6  * require a specific license from the United States Government.
7  * It is the responsibility of any person or organization contemplating
8  * export to obtain such a license before exporting.
9  *
10  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
11  * distribute this software and its documentation for any purpose and
12  * without fee is hereby granted, provided that the above copyright
13  * notice appear in all copies and that both that copyright notice and
14  * this permission notice appear in supporting documentation, and that
15  * the name of M.I.T. not be used in advertising or publicity pertaining
16  * to distribution of the software without specific, written prior
17  * permission.  Furthermore if you modify this software you must label
18  * your software as modified software and not distribute it in such a
19  * fashion that it might be confused with the original M.I.T. software.
20  * M.I.T. makes no representations about the suitability of
21  * this software for any purpose.  It is provided "as is" without express
22  * or implied warranty.
23  */
24
25 #import "k5_mig_requestServer.h"
26 #import "k5_mig_reply.h"
27 #import "k5-ipc_stream.h"
28 #import "k5_mig_server.h"
29
30
31 int32_t kim_agent_listen_loop (void);
32
33 int32_t kim_handle_reply_init (mach_port_t   in_reply_port,
34                                int32_t       in_error);
35
36 int32_t kim_handle_reply_enter_identity (mach_port_t   in_reply_port,
37                                          kim_identity  in_identity,
38                                          kim_options   in_options,
39                                          kim_boolean   in_change_password,
40                                          int32_t       in_error);
41
42 int32_t kim_handle_reply_select_identity (mach_port_t   in_reply_port,
43                                           kim_identity  in_identity,
44                                           kim_options   in_options,
45                                           kim_boolean   in_change_password,
46                                           int32_t       in_error);
47
48 int32_t kim_handle_reply_auth_prompt (mach_port_t   in_reply_port,
49                                       kim_string    in_prompt_response,
50                                       kim_boolean   in_allow_save_response,
51                                       int32_t       in_error);
52
53 int32_t kim_handle_reply_change_password (mach_port_t   in_reply_port,
54                                           kim_string    in_old_password,
55                                           kim_string    in_new_password,
56                                           kim_string    in_vfy_password,
57                                           int32_t       in_error);
58
59 int32_t kim_handle_reply_handle_error (mach_port_t   in_reply_port,
60                                        int32_t       in_error);
61
62 int32_t kim_handle_reply_fini (mach_port_t   in_reply_port,
63                                int32_t       in_error);