mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-09 04:49:05 +00:00
FS-10165: Removed dependancy and autoconf check for libsodium from libks. Moved DHT, bencode, and related tests into libblade. Still requires refactoring in blade from ks_* to blade_*.
This commit is contained in:
1 parent
716f02897a
commit
5cff01b2a8
28 files changed
+48
-59
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#include <ks.h>
|
||||
#include <ks_dht.h>
|
||||
#include <ks_dht-int.h>
|
||||
#include <tap.h>
|
||||
|
||||
int main() {
|
||||
uint8_t nodeid[KS_DHT_NODEID_SIZE];
|
||||
char buf[KS_DHT_NODEID_SIZE * 2 + 1];
|
||||
|
||||
randombytes_buf(nodeid, KS_DHT_NODEID_SIZE);
|
||||
|
||||
ks_dht_hex(nodeid, buf, KS_DHT_NODEID_SIZE);
|
||||
|
||||
printf(buf);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user