SealdSdk_RetrieveMultipleEncryptionSessions method
- Pointer<
NativeSealdSdk> sealdSdk, - Pointer<
NativeSealdStringArray> sessionIds, - int useCache,
- int lookupProxyKey,
- int lookupGroupKey,
- Pointer<
Pointer< result,NativeSealdEncryptionSessionArray> > - Pointer<
Pointer< error,NativeSealdError> >
Retrieve multiple encryption sessions with a SealdStringArray of sessionIds, and return a SealdEncryptionSessionArray of the associated EncryptionSession instances, with which you can then encrypt / decrypt multiple messages. The returned array of EncryptionSession instances is in the same order as the input array.
@param sealdSdk The SealdSdk instance.
@param sessionIds The IDs of sessions to retrieve.
@param useCache Whether or not to use the cache (if enabled globally). 1 to use cache, 0 to not use it.
@param lookupProxyKey Whether or not to try retrieving the session via a proxy. 1 for True, 0 for False.
@param lookupGroupKey Whether or not to try retrieving the session via a group. 1 for True, 0 for False.
@param result A pointer where to store the retrieved SealdEncryptionSessionArray instance.
@param error A pointer to a SealdError* where details will be stored in case of error.
@return Error code: -1 if an error happened, 0 for success.
Implementation
int SealdSdk_RetrieveMultipleEncryptionSessions(
ffi.Pointer<NativeSealdSdk> sealdSdk,
ffi.Pointer<NativeSealdStringArray> sessionIds,
int useCache,
int lookupProxyKey,
int lookupGroupKey,
ffi.Pointer<ffi.Pointer<NativeSealdEncryptionSessionArray>> result,
ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
return _SealdSdk_RetrieveMultipleEncryptionSessions(
sealdSdk,
sessionIds,
useCache,
lookupProxyKey,
lookupGroupKey,
result,
error,
);
}