Skip to content
Snippets Groups Projects

Crypto Storage and LoginWithNewDevice and LoginWithPreviouslyAddedDevice APIs

Merged Daniel Lyubomirov requested to merge storage into master
4 unresolved threads
124 files
+ 8239
352
Compare changes
  • Side-by-side
  • Inline
Files
124
#ifndef VEREIGN_VEREIGN_H_
#define VEREIGN_VEREIGN_H_
#ifndef __VEREIGN_VEREIGN_H
#define __VEREIGN_VEREIGN_H
#ifdef _WIN32
#ifdef WIN_EXPORT
@@ -84,8 +84,12 @@ typedef struct vereign_service vereign_service;
* **NOTE: On failure the `err` object must be freed with vereign_error_free method.**
*
* @param listen_address gRPC listen address, for example "localhost:".
* @param vereignHost Vereign restapi host.
* @param vereignPort Vereign restapi port - https, 443...
* @param vereign_host Vereign restapi host.
* @param vereign_port Vereign restapi port - https, 443...
* @param storage_path Full path to directory where the storage files will stay.
* If the `storage_path` is `nullptr`, a default will be used. Under linux this default is
* `$HOME/vereign`, and under windows it is `C:\Users\<user>\AppData\Local\vereign`.
*
* @param err On failure err is initialized with the reason of the failure,
* otherwise err is set to nullptr.
* @returns vereign_service object if the gRPC is up and running, otherwise returns nullptr.
@@ -94,8 +98,7 @@ PUBLIC_API vereign_service* vereign_service_start(
const char* listen_address,
const char* vereign_host,
const char* vereign_port,
// FIXME: public_key must come from a storage internally.
const char* public_key,
const char* storage_path,
vereign_error** err
);
@@ -122,4 +125,4 @@ PUBLIC_API void vereign_service_shutdown(vereign_service* service);
};
#endif
#endif // VEREIGN_VEREIGN_H_
#endif // __VEREIGN_VEREIGN_H
Loading