Clean up RPM spec for newer distributions
[clumanager.git] / librhcm / auth_sha1.h
blobb7f4173f4756baf958b1d98c7b721411526cd00d
1 /**
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
7 later version.
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,
17 MA 02139, USA.
19 /** @file
20 * Very simple challenge-response, based on sha1 + shared-secret (header)
22 #ifndef __AUTH_SHA1_H
23 #define __AUTH_SHA1_H
24 int auth_sha1_init(char *key, size_t keylen);
25 int auth_sha1_deinit(void);
26 int auth_sha1_challenge(int fd);
27 int auth_sha1(int fd);
28 #endif