Blame ntp_signd.h

Packit 96c956
/*
Packit 96c956
  chronyd/chronyc - Programs for keeping computer clocks accurate.
Packit 96c956
Packit 96c956
 **********************************************************************
Packit 96c956
 * Copyright (C) Miroslav Lichvar  2016
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 MS-SNTP authentication via Samba (ntp_signd) */
Packit 96c956
Packit 96c956
#ifndef GOT_NTP_SIGND_H
Packit 96c956
#define GOT_NTP_SIGND_H
Packit 96c956
Packit 96c956
#include "addressing.h"
Packit 96c956
#include "ntp.h"
Packit 96c956
Packit 96c956
/* Initialisation function */
Packit 96c956
extern void NSD_Initialise(void);
Packit 96c956
Packit 96c956
/* Finalisation function */
Packit 96c956
extern void NSD_Finalise(void);
Packit 96c956
Packit 96c956
/* Function to get an estimate of delay due to signing */
Packit 96c956
extern int NSD_GetAuthDelay(uint32_t key_id);
Packit 96c956
Packit 96c956
/* Function to sign an NTP packet and send it */
Packit 96c956
extern int NSD_SignAndSendPacket(uint32_t key_id, NTP_Packet *packet, NTP_Remote_Address *remote_addr, NTP_Local_Address *local_addr, int length);
Packit 96c956
Packit 96c956
#endif