File: auth.h

package info (click to toggle)
gtklock 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: ansic: 1,195; makefile: 7; xml: 6
file content (29 lines) | stat: -rw-r--r-- 373 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// gtklock
// Copyright (c) 2022 Jovan Lanik

// PAM Authentication

#pragma once

#include <glib.h>

enum pwcheck {
	PW_WAIT,
	PW_FAILURE,
	PW_SUCCESS,
	PW_ERROR,
	PW_MESSAGE,
};

enum pipedir {
	PIPE_PARENT,
	PIPE_CHILD,
	PIPE_LAST,
};

typedef int pipe_t[PIPE_LAST];

char *auth_get_error(void);
char *auth_get_message(void);
enum pwcheck auth_pw_check(const char *s);