mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Renamed main-auth.h.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include <syslog.h>
|
||||
#include <vpn.h>
|
||||
#include "pam.h"
|
||||
#include <main-auth.h>
|
||||
#include <sec-mod-auth.h>
|
||||
|
||||
#ifdef HAVE_PAM
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#ifndef PAM_H
|
||||
#define PAM_H
|
||||
|
||||
#include <main-auth.h>
|
||||
#include <sec-mod-auth.h>
|
||||
|
||||
extern const struct auth_mod_st pam_auth_funcs;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#ifndef PLAIN_H
|
||||
#define PLAIN_H
|
||||
|
||||
#include <main-auth.h>
|
||||
#include <sec-mod-auth.h>
|
||||
|
||||
extern const struct auth_mod_st plain_auth_funcs;
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <tun.h>
|
||||
#include <main.h>
|
||||
#include <ccan/list/list.h>
|
||||
#include <main-auth.h>
|
||||
#include <common.h>
|
||||
|
||||
int send_cookie_auth_reply(main_server_st* s, struct proc_st* proc,
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
#include <main-sup-config.h>
|
||||
#include <main-ctl.h>
|
||||
#include <route-add.h>
|
||||
#include <main-auth.h>
|
||||
#include <worker.h>
|
||||
#include <cookies.h>
|
||||
#include <tun.h>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <tun.h>
|
||||
#include <main.h>
|
||||
#include <ccan/list/list.h>
|
||||
#include <main-auth.h>
|
||||
#include <sec-mod-auth.h>
|
||||
#include <auth/plain.h>
|
||||
#include <common.h>
|
||||
#include <auth/pam.h>
|
||||
|
||||
@@ -38,22 +38,6 @@ struct auth_mod_st {
|
||||
void main_auth_init(main_server_st *s);
|
||||
void proc_auth_deinit(main_server_st* s, struct proc_st* proc);
|
||||
|
||||
/* Authentication with the worker thread works as follows:
|
||||
* main worker
|
||||
* <---- auth_init (username)
|
||||
* auth_msg ---->
|
||||
* <---- auth_req (password)
|
||||
*
|
||||
* [the last two messages may be repeated multiple times,
|
||||
* e.g. when in two-factor authentication]
|
||||
*
|
||||
* The receipt of auth_init message results to auth_init()
|
||||
* being called, auth_msg to auth_msg() and auth_req to auth_pass().
|
||||
*
|
||||
* The auth_msg() may contain the message to be printed at
|
||||
* the password entry field.
|
||||
*
|
||||
* auth_group() is called sometime after auth_init() to retrieve
|
||||
* the group of the user.
|
||||
/* The authentication with the worker thread is shown in ipc.proto.
|
||||
*/
|
||||
#endif
|
||||
Reference in New Issue
Block a user