SealdEncryptionSession_AddProxySession method
int
SealdEncryptionSession_AddProxySession(
- Pointer<
NativeSealdEncryptionSession> es, - Pointer<
Utf8> proxySessionId, - int readRight,
- int forwardRight,
- int revokeRight,
- Pointer<
Pointer< error,NativeSealdError> >
Add a proxy session as a recipient of this session. Any recipient of the proxy session will also be able to retrieve this session. The current user has to be a direct recipient of the proxy session.
@param es The SealdEncryptionSession instance.
@param proxySessionId The ID of the session to add as proxy.
@param readRight The read right to assign to this proxy.
@param forwardRight The forward right to assign to this proxy.
@param revokeRight The revoke right to assign to this proxy.
@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 SealdEncryptionSession_AddProxySession(
ffi.Pointer<NativeSealdEncryptionSession> es,
ffi.Pointer<pkg_ffi.Utf8> proxySessionId,
int readRight,
int forwardRight,
int revokeRight,
ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
return _SealdEncryptionSession_AddProxySession(
es,
proxySessionId,
readRight,
forwardRight,
revokeRight,
error,
);
}