MAX_PASSLEN based authentication
This commit is contained in:
parent
10e53efaee
commit
228734ab02
3 changed files with 13 additions and 63 deletions
|
@ -15,7 +15,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef GRUB_AURH_HEADER
|
||||
#ifndef GRUB_AUTH_HEADER
|
||||
#define GRUB_AUTH_HEADER 1
|
||||
|
||||
#include <grub/err.h>
|
||||
|
@ -26,11 +26,6 @@
|
|||
string, len, \
|
||||
'*', 0, 0)
|
||||
|
||||
/* Like strcmp but untimeable. Accepts NULL as second argument. */
|
||||
int grub_auth_strcmp (const char *user_input, const char *template);
|
||||
/* Like strcmp but untimeable and ignores commas in needle. */
|
||||
int grub_auth_strword (const char *haystack, const char *needle);
|
||||
|
||||
typedef grub_err_t (*grub_auth_callback_t) (const char*, void *);
|
||||
|
||||
grub_err_t grub_auth_register_authentication (const char *user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue