util: move authentication and password decoding functions to keys

This doesn't need to be included in chronyc.
This commit is contained in:
Miroslav Lichvar
2016-11-29 11:04:17 +01:00
parent 4fc6a1b424
commit 2f5b4aea91
3 changed files with 59 additions and 64 deletions

8
util.h
View File

@@ -157,14 +157,6 @@ extern Float UTI_FloatHostToNetwork(double x);
/* Set FD_CLOEXEC on descriptor */
extern int UTI_FdSetCloexec(int fd);
extern int UTI_GenerateNTPAuth(int hash_id, const unsigned char *key, int key_len,
const unsigned char *data, int data_len, unsigned char *auth, int auth_len);
extern int UTI_CheckNTPAuth(int hash_id, const unsigned char *key, int key_len,
const unsigned char *data, int data_len, const unsigned char *auth, int auth_len);
/* Decode password encoded in ASCII or HEX */
extern int UTI_DecodePasswordFromText(char *key);
extern int UTI_SetQuitSignalsHandler(void (*handler)(int));
/* Get directory (as an allocated string) for a path */