Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / auth.h
blob747334451739b0db7c5286905099823964810770
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2009 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef GRUB_AUTH_HEADER
19 #define GRUB_AUTH_HEADER 1
21 #include <grub/err.h>
22 #include <grub/crypto.h>
24 #define GRUB_AUTH_MAX_PASSLEN 1024
26 typedef grub_err_t (*grub_auth_callback_t) (const char *, const char *, void *);
28 grub_err_t grub_auth_register_authentication (const char *user,
29 grub_auth_callback_t callback,
30 void *arg);
31 grub_err_t grub_auth_unregister_authentication (const char *user);
33 grub_err_t grub_auth_authenticate (const char *user);
34 grub_err_t grub_auth_deauthenticate (const char *user);
35 grub_err_t grub_auth_check_authentication (const char *userlist);
37 #endif /* ! GRUB_AUTH_HEADER */