10 #include <ntp_stdlib.h>
11 #include <ntp_md5.h> /* provides OpenSSL digest API */
12 #include "utilities.h"
13 #include "sntp-opts.h"
15 #define LEN_PKT_MAC LEN_PKT_NOMAC + sizeof(u_int32)
17 /* #include "sntp-opts.h" */
27 extern int auth_init(const char *keyfile, struct key **keys);
28 extern void get_key(int key_id, struct key **d_key);
29 extern int make_mac(const void *pkt_data, int pkt_size, int mac_size,
30 const struct key *cmp_key, void *digest);
31 extern int auth_md5(const void *pkt_data, int pkt_size, int mac_size,
32 const struct key *cmp_key);