2 Copyright Red Hat, Inc. 2003
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 2, or (at your option) any
9 This program is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING. If not, write to the
16 Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
20 * Very simple challenge-response, based on md5 + shared-secret (header)
24 int auth_md5_init(char *key
, size_t keylen
);
25 int auth_md5_deinit(void);
26 int auth_md5_challenge(int fd
);