Support passwords encoded in HEX

This commit is contained in:
Miroslav Lichvar
2012-02-09 16:44:43 +01:00
parent d6842301dd
commit d77356837a
5 changed files with 66 additions and 12 deletions

3
util.h
View File

@@ -107,6 +107,9 @@ extern int UTI_GenerateNTPAuth(int hash_id, const unsigned char *key, int key_le
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);
#if defined (INLINE_UTILITIES)
#define INLINE_STATIC inline static
#include "util.c"