auth-client-interface.h revision 64e244defe74f513ce94f33d000a048ddbe2ea23
#ifndef __AUTH_CLIENT_INTERFACE_H
#define __AUTH_CLIENT_INTERFACE_H
/* max. size for auth_client_request_continue.data[] */
#define AUTH_CLIENT_MAX_REQUEST_DATA_SIZE 4096
/* Client process must finish with single authentication requests in this time,
or the whole connection will be killed. */
#define AUTH_REQUEST_TIMEOUT 120
};
enum auth_client_request_type {
};
enum auth_client_result {
};
/* Client -> Server */
struct auth_client_handshake_request {
unsigned int client_pid; /* unique identifier for client process */
};
struct auth_client_handshake_mech_desc {
unsigned int plaintext:1;
unsigned int advertise:1;
};
/* Server -> Client */
struct auth_client_handshake_reply {
unsigned int server_pid; /* unique auth process identifier */
/* struct auth_client_handshake_mech_desc mech_desc[auth_mech_count]; */
};
/* New authentication request */
struct auth_client_request_new {
unsigned int id; /* unique ID for the request */
/* unsigned char data[]; */
};
#define AUTH_CLIENT_REQUEST_HAVE_INITIAL_RESPONSE(request) \
/* Continue authentication request */
struct auth_client_request_continue {
unsigned int id;
/* unsigned char data[]; */
};
/* Reply to authentication */
struct auth_client_request_reply {
unsigned int id;
enum auth_client_result result;
/* variable width data, indexes into data[].
Ignore if it points outside data_size. */
/* unsigned char data[]; */
};
#endif