Blame keys.h

Packit 96c956
/*
Packit 96c956
  chronyd/chronyc - Programs for keeping computer clocks accurate.
Packit 96c956
Packit 96c956
 **********************************************************************
Packit 96c956
 * Copyright (C) Richard P. Curnow  1997-2002
Packit 96c956
 * 
Packit 96c956
 * This program is free software; you can redistribute it and/or modify
Packit 96c956
 * it under the terms of version 2 of the GNU General Public License as
Packit 96c956
 * published by the Free Software Foundation.
Packit 96c956
 * 
Packit 96c956
 * This program is distributed in the hope that it will be useful, but
Packit 96c956
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 96c956
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 96c956
 * General Public License for more details.
Packit 96c956
 * 
Packit 96c956
 * You should have received a copy of the GNU General Public License along
Packit 96c956
 * with this program; if not, write to the Free Software Foundation, Inc.,
Packit 96c956
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
Packit 96c956
 * 
Packit 96c956
 **********************************************************************
Packit 96c956
Packit 96c956
  =======================================================================
Packit 96c956
Packit 96c956
  Header for key management module
Packit 96c956
  */
Packit 96c956
Packit 96c956
#ifndef GOT_KEYS_H
Packit 96c956
#define GOT_KEYS_H
Packit 96c956
Packit 96c956
#include "sysincl.h"
Packit 96c956
Packit 96c956
extern void KEY_Initialise(void);
Packit 96c956
extern void KEY_Finalise(void);
Packit 96c956
Packit 96c956
extern void KEY_Reload(void);
Packit 96c956
Packit 96c956
extern int KEY_GetKey(uint32_t key_id, char **key, int *len);
Packit 96c956
extern int KEY_KeyKnown(uint32_t key_id);
Packit 96c956
extern int KEY_GetAuthDelay(uint32_t key_id);
Packit 96c956
extern int KEY_GetAuthLength(uint32_t key_id);
Packit 96c956
extern int KEY_CheckKeyLength(uint32_t key_id);
Packit 96c956
Packit 96c956
extern int KEY_GenerateAuth(uint32_t key_id, const unsigned char *data,
Packit 96c956
    int data_len, unsigned char *auth, int auth_len);
Packit 96c956
extern int KEY_CheckAuth(uint32_t key_id, const unsigned char *data, int data_len,
Packit 96c956
                         const unsigned char *auth, int auth_len, int trunc_len);
Packit 96c956
Packit 96c956
#endif /* GOT_KEYS_H */