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_
#ifndef __VEREIGN_VEREIGN_H
#define VEREIGN_VEREIGN_H_
#define __VEREIGN_VEREIGN_H
#ifdef _WIN32
#ifdef _WIN32
#ifdef WIN_EXPORT
#ifdef WIN_EXPORT
@@ -84,8 +84,12 @@ typedef struct vereign_service vereign_service;
@@ -84,8 +84,12 @@ typedef struct vereign_service vereign_service;
* **NOTE: On failure the `err` object must be freed with vereign_error_free method.**
* **NOTE: On failure the `err` object must be freed with vereign_error_free method.**
*
*
* @param listen_address gRPC listen address, for example "localhost:".
* @param listen_address gRPC listen address, for example "localhost:".
* @param vereignHost Vereign restapi host.
* @param vereign_host Vereign restapi host.
* @param vereignPort Vereign restapi port - https, 443...
* @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,
* @param err On failure err is initialized with the reason of the failure,
* otherwise err is set to nullptr.
* otherwise err is set to nullptr.
* @returns vereign_service object if the gRPC is up and running, otherwise returns 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(
@@ -94,8 +98,7 @@ PUBLIC_API vereign_service* vereign_service_start(
const char* listen_address,
const char* listen_address,
const char* vereign_host,
const char* vereign_host,
const char* vereign_port,
const char* vereign_port,
// FIXME: public_key must come from a storage internally.
const char* storage_path,
const char* public_key,
vereign_error** err
vereign_error** err
);
);
@@ -122,4 +125,4 @@ PUBLIC_API void vereign_service_shutdown(vereign_service* service);
@@ -122,4 +125,4 @@ PUBLIC_API void vereign_service_shutdown(vereign_service* service);
};
};
#endif
#endif
#endif // VEREIGN_VEREIGN_H_
#endif // __VEREIGN_VEREIGN_H
Loading