SealdEncryptionSession_RevokeRecipients method

int SealdEncryptionSession_RevokeRecipients(
  1. Pointer<NativeSealdEncryptionSession> es,
  2. Pointer<NativeSealdStringArray> recipientsIds,
  3. Pointer<NativeSealdStringArray> proxySessionsIds,
  4. Pointer<NativeSealdStringArray> symEncKeysIds,
  5. Pointer<NativeSealdStringArray> tmrAccessIds,
  6. Pointer<NativeSealdAuthFactorArray> tmrAccessAuthFactors,
  7. Pointer<Pointer<NativeSealdRevokeResult>> result,
  8. Pointer<Pointer<NativeSealdError>> error,
)

Revoke some recipients or proxy sessions from this session. If you want to revoke all recipients, see SealdEncryptionSession_RevokeAll instead. If you want to revoke all recipients besides yourself, see SealdEncryptionSession_RevokeOthers.

@param es The SealdEncryptionSession instance. @param recipientsIds The Seald IDs of users to revoke from this session. @param proxySessionsIds The IDs of proxy sessions to revoke from this session. @param symEncKeysIds The IDs of symEncKeys to revoke from this session. @param tmrAccessIds The IDs of tmrAccesses to revoke from this session. @param tmrAccessAuthFactors The value of tmrAccesses to revoke from this session. @param result A pointer to which to write the response. @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_RevokeRecipients(
  ffi.Pointer<NativeSealdEncryptionSession> es,
  ffi.Pointer<NativeSealdStringArray> recipientsIds,
  ffi.Pointer<NativeSealdStringArray> proxySessionsIds,
  ffi.Pointer<NativeSealdStringArray> symEncKeysIds,
  ffi.Pointer<NativeSealdStringArray> tmrAccessIds,
  ffi.Pointer<NativeSealdAuthFactorArray> tmrAccessAuthFactors,
  ffi.Pointer<ffi.Pointer<NativeSealdRevokeResult>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdEncryptionSession_RevokeRecipients(
    es,
    recipientsIds,
    proxySessionsIds,
    symEncKeysIds,
    tmrAccessIds,
    tmrAccessAuthFactors,
    result,
    error,
  );
}