I am trying to replace MD5 hashing with SHA1 hashing, but I don't want to take a dependency on libtomcrypt.
I got my own SHA1 standalone file similar what chronyd does now for MD5.
I modified configure to set HASH_OBJ="hash_intsha.o"
where hash_intsha.c is my source file.
In that file, I have basically copied the structure of hash_intmd5 but replaced it with calls to my own SHA routines (ofcourse, changing the sha size from 16 to 20 by 160bit SHA1)
I compile this stuff with sechash disabled and --without-tomcrypt.
However, the daemon cannot get the time. It runs for a while, and then exits with "No suitable source for sync.." (I run it with chronyd -q)
I had tested chronyd with MD5 and my own NTP server which serves auth packets, and it worked fine. Now I've changed everything to SHA like the above, but it does not work. Any ideas why?
-Earlence