|
xsecurelock 1.8.0
XSecureLock is an X11 screen lock utility.
|
Go to the source code of this file.
Macros | |
| #define | PTYPE_INFO_MESSAGE 'i' |
| #define | PTYPE_ERROR_MESSAGE 'e' |
| #define | PTYPE_PROMPT_LIKE_USERNAME 'U' |
| #define | PTYPE_PROMPT_LIKE_PASSWORD 'P' |
| #define | PTYPE_RESPONSE_LIKE_USERNAME 'u' |
| #define | PTYPE_RESPONSE_LIKE_PASSWORD 'p' |
| #define | PTYPE_RESPONSE_CANCELLED 'x' |
Functions | |
| void | WritePacket (int fd, char type, const char *message) |
| Writes a packet in above form. | |
| char | ReadPacket (int fd, char **message, int eof_permitted) |
| Reads a packet in above form. | |
| #define PTYPE_ERROR_MESSAGE 'e' |
| #define PTYPE_INFO_MESSAGE 'i' |
| #define PTYPE_PROMPT_LIKE_PASSWORD 'P' |
| #define PTYPE_PROMPT_LIKE_USERNAME 'U' |
| #define PTYPE_RESPONSE_CANCELLED 'x' |
| #define PTYPE_RESPONSE_LIKE_PASSWORD 'p' |
| #define PTYPE_RESPONSE_LIKE_USERNAME 'u' |
| char ReadPacket | ( | int | fd, |
| char ** | message, | ||
| int | eof_permitted ) |
Reads a packet in above form.
| fd | The file descriptor to write to. |
| message | A pointer to store the message (will be mlock()d). Will always be set if function returns nonzero; caller must free it. |
| eof_permitted | If enabled, encountering EOF at the beginning will not count as an error but return 0 silently. |
| void WritePacket | ( | int | fd, |
| char | type, | ||
| const char * | message ) |
Writes a packet in above form.
| fd | The file descriptor to write to. |
| type | The packet type from above macros. |
| message | The message to include with the packet (NUL-terminated). |