auth-login-interface.h revision 25757faf029c369a8318349dafe952e2358df1d8
#ifndef __AUTH_LOGIN_INTERFACE_H
#define __AUTH_LOGIN_INTERFACE_H
/* max. size for auth_login_request_continue.data[] */
#define AUTH_LOGIN_MAX_REQUEST_DATA_SIZE 4096
enum auth_mech {
AUTH_MECH_PLAIN = 0x01,
AUTH_MECH_DIGEST_MD5 = 0x02,
};
enum auth_login_request_type {
};
enum auth_login_result {
};
/* Incoming handshake */
struct auth_login_handshake_input {
unsigned int pid; /* unique identifier for client process */
};
/* Outgoing handshake */
struct auth_login_handshake_output {
unsigned int pid; /* unique auth process identifier */
};
/* New authentication request */
struct auth_login_request_new {
unsigned int id; /* unique ID for the request */
};
/* Continue authentication request */
struct auth_login_request_continue {
unsigned int id;
/* unsigned char data[]; */
};
/* Reply to authentication */
struct auth_login_reply {
unsigned int id;
enum auth_login_result result;
/* variable width data, indexes into data[].
Ignore if it points outside data_size. */
/* unsigned char data[]; */
};
#endif