serval-client.c File Reference

client for running serval-dna's built-in commands and signing and verification using Serval keys More...

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <serval.h>
#include <serval/conf.h>
#include <serval/mdp_client.h>
#include <serval/rhizome.h>
#include <serval/crypto.h>
#include "debug.h"
#include "util.h"
#include "socket.h"
#include "obj.h"
#include "crypto.h"
#include "serval-dna.h"

Macros

#define _DECLARE_SERVAL(F)   extern int F(const struct cli_parsed *parsed, void *context);
 
#define KEYRING_PIN_OPTIONS   ,"[--keyring-pin=<pin>]","[--entry-pin=<pin>]..."
 

Enumerations

enum  serval_client_cmd { SERVAL_SIGN = 0, SERVAL_VERIFY = 1, SERVAL_CRYPTO = 2 }
 

Functions

 _DECLARE_SERVAL (commandline_usage)
 
 _DECLARE_SERVAL (app_echo)
 
 _DECLARE_SERVAL (app_log)
 
 _DECLARE_SERVAL (app_dna_lookup)
 
 _DECLARE_SERVAL (app_mdp_ping)
 
 _DECLARE_SERVAL (app_trace)
 
 _DECLARE_SERVAL (app_config_schema)
 
 _DECLARE_SERVAL (app_config_dump)
 
 _DECLARE_SERVAL (app_config_set)
 
 _DECLARE_SERVAL (app_config_get)
 
 _DECLARE_SERVAL (app_rhizome_hash_file)
 
 _DECLARE_SERVAL (app_rhizome_add_file)
 
 _DECLARE_SERVAL (app_slip_test)
 
 _DECLARE_SERVAL (app_rhizome_import_bundle)
 
 _DECLARE_SERVAL (app_rhizome_append_manifest)
 
 _DECLARE_SERVAL (app_rhizome_delete)
 
 _DECLARE_SERVAL (app_rhizome_clean)
 
 _DECLARE_SERVAL (app_rhizome_extract)
 
 _DECLARE_SERVAL (app_rhizome_export_file)
 
 _DECLARE_SERVAL (app_rhizome_list)
 
 _DECLARE_SERVAL (app_keyring_create)
 
 _DECLARE_SERVAL (app_keyring_dump)
 
 _DECLARE_SERVAL (app_keyring_list)
 
 _DECLARE_SERVAL (app_keyring_add)
 
 _DECLARE_SERVAL (app_keyring_set_did)
 
 _DECLARE_SERVAL (app_id_self)
 
 _DECLARE_SERVAL (app_route_print)
 
 _DECLARE_SERVAL (app_network_scan)
 
 _DECLARE_SERVAL (app_count_peers)
 
 _DECLARE_SERVAL (app_reverse_lookup)
 
 _DECLARE_SERVAL (app_monitor_cli)
 
 _DECLARE_SERVAL (app_crypt_test)
 
 _DECLARE_SERVAL (app_nonce_test)
 
int main (int argc, char *argv[])
 

Detailed Description

client for running serval-dna's built-in commands and signing and verification using Serval keys

Author
Dan Staples (dismantl), danst.nosp@m.aple.nosp@m.s@ope.nosp@m.ntec.nosp@m.hinst.nosp@m.itut.nosp@m.e.org