| 1 |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 |
// Copyright by contributors to this project. |
| 3 |
// SPDX-License-Identifier: (Apache-2.0 OR MIT) |
| 4 |
|
| 5 |
use core::ops::{Deref, DerefMut}; |
| 6 |
|
| 7 |
use alloc::format; |
| 8 |
use rand::RngCore; |
| 9 |
|
| 10 |
use super::*; |
| 11 |
use crate::{ |
| 12 |
client::{ |
| 13 |
test_utils::{ |
| 14 |
test_client_with_key_pkg, test_client_with_key_pkg_custom, TEST_CIPHER_SUITE, |
| 15 |
TEST_PROTOCOL_VERSION, |
| 16 |
}, |
| 17 |
MlsError, |
| 18 |
}, |
| 19 |
client_builder::test_utils::{TestClientBuilder, TestClientConfig}, |
| 20 |
crypto::test_utils::test_cipher_suite_provider, |
| 21 |
extension::ExtensionType, |
| 22 |
identity::test_utils::get_test_signing_identity, |
| 23 |
key_package::{KeyPackageGeneration, KeyPackageGenerator}, |
| 24 |
mls_rules::{CommitOptions, DefaultMlsRules}, |
| 25 |
tree_kem::{leaf_node::test_utils::get_test_capabilities, Lifetime}, |
| 26 |
}; |
| 27 |
|
| 28 |
use crate::extension::RequiredCapabilitiesExt; |
| 29 |
|
| 30 |
#[cfg(not(feature = "by_ref_proposal"))] |
| 31 |
use crate::crypto::HpkePublicKey; |
| 32 |
|
| 33 |
pub const TEST_GROUP: &[u8] = b"group"; |
| 34 |
|
| 35 |
#[derive(Clone)] |
| 36 |
pub(crate) struct TestGroup { |
| 37 |
pub group: Group<TestClientConfig>, |
| 38 |
} |
| 39 |
|
| 40 |
impl Deref for TestGroup { |
| 41 |
type Target = Group<TestClientConfig>; |
| 42 |
|
| 43 |
fn deref(&self) -> &Self::Target { |
| 44 |
&self.group |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
impl DerefMut for TestGroup { |
| 49 |
fn deref_mut(&mut self) -> &mut Self::Target { |
| 50 |
&mut self.group |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
impl TestGroup { |
| 55 |
#[cfg(feature = "external_client")] |
| 56 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 57 |
pub(crate) async fn propose(&mut self, proposal: Proposal) -> MlsMessage { |
| 58 |
self.proposal_message(proposal, vec![]).await.unwrap() |
| 59 |
} |
| 60 |
|
| 61 |
#[cfg(feature = "by_ref_proposal")] |
| 62 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 63 |
pub(crate) async fn update_proposal(&mut self) -> Proposal { |
| 64 |
self.group.update_proposal(None, None, None).await.unwrap() |
| 65 |
} |
| 66 |
|
| 67 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 68 |
pub(crate) async fn join_with_custom_config<F>( |
| 69 |
&mut self, |
| 70 |
name: &str, |
| 71 |
custom_kp: bool, |
| 72 |
mut config: F, |
| 73 |
) -> Result<(TestGroup, MlsMessage), MlsError> |
| 74 |
where |
| 75 |
F: FnMut(&mut TestClientConfig), |
| 76 |
{ |
| 77 |
let (mut new_client, new_key_package) = if custom_kp { |
| 78 |
test_client_with_key_pkg_custom( |
| 79 |
self.protocol_version(), |
| 80 |
self.cipher_suite(), |
| 81 |
name, |
| 82 |
Default::default(), |
| 83 |
Default::default(), |
| 84 |
&mut config, |
| 85 |
) |
| 86 |
.await |
| 87 |
} else { |
| 88 |
test_client_with_key_pkg(self.protocol_version(), self.cipher_suite(), name).await |
| 89 |
}; |
| 90 |
|
| 91 |
// Add new member to the group |
| 92 |
let CommitOutput { |
| 93 |
welcome_messages, |
| 94 |
ratchet_tree, |
| 95 |
commit_message, |
| 96 |
.. |
| 97 |
} = self |
| 98 |
.commit_builder() |
| 99 |
.add_member(new_key_package) |
| 100 |
.unwrap() |
| 101 |
.build() |
| 102 |
.await |
| 103 |
.unwrap(); |
| 104 |
|
| 105 |
// Apply the commit to the original group |
| 106 |
self.apply_pending_commit().await.unwrap(); |
| 107 |
|
| 108 |
config(&mut new_client.config); |
| 109 |
|
| 110 |
// Group from new member's perspective |
| 111 |
let (new_group, _) = Group::join( |
| 112 |
&welcome_messages[0], |
| 113 |
ratchet_tree, |
| 114 |
new_client.config.clone(), |
| 115 |
new_client.signer.clone().unwrap(), |
| 116 |
) |
| 117 |
.await?; |
| 118 |
|
| 119 |
let new_test_group = TestGroup { group: new_group }; |
| 120 |
|
| 121 |
Ok((new_test_group, commit_message)) |
| 122 |
} |
| 123 |
|
| 124 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 125 |
pub(crate) async fn join(&mut self, name: &str) -> (TestGroup, MlsMessage) { |
| 126 |
self.join_with_custom_config(name, false, |_| ()) |
| 127 |
.await |
| 128 |
.unwrap() |
| 129 |
} |
| 130 |
|
| 131 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 132 |
pub(crate) async fn process_pending_commit( |
| 133 |
&mut self, |
| 134 |
) -> Result<CommitMessageDescription, MlsError> { |
| 135 |
self.apply_pending_commit().await |
| 136 |
} |
| 137 |
|
| 138 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 139 |
pub(crate) async fn process_message( |
| 140 |
&mut self, |
| 141 |
message: MlsMessage, |
| 142 |
) -> Result<ReceivedMessage, MlsError> { |
| 143 |
self.process_incoming_message(message).await |
| 144 |
} |
| 145 |
|
| 146 |
#[cfg(feature = "private_message")] |
| 147 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 148 |
pub(crate) async fn make_plaintext(&mut self, content: Content) -> MlsMessage { |
| 149 |
let auth_content = AuthenticatedContent::new_signed( |
| 150 |
&self.cipher_suite_provider, |
| 151 |
&self.state.context, |
| 152 |
Sender::Member(*self.private_tree.self_index), |
| 153 |
content, |
| 154 |
&self.signer, |
| 155 |
WireFormat::PublicMessage, |
| 156 |
Vec::new(), |
| 157 |
) |
| 158 |
.await |
| 159 |
.unwrap(); |
| 160 |
|
| 161 |
self.format_for_wire(auth_content).await.unwrap() |
| 162 |
} |
| 163 |
} |
| 164 |
|
| 165 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 166 |
pub(crate) async fn get_test_group_context(epoch: u64, cipher_suite: CipherSuite) -> GroupContext { |
| 167 |
let cs = test_cipher_suite_provider(cipher_suite); |
| 168 |
|
| 169 |
GroupContext { |
| 170 |
protocol_version: TEST_PROTOCOL_VERSION, |
| 171 |
cipher_suite, |
| 172 |
group_id: TEST_GROUP.to_vec(), |
| 173 |
epoch, |
| 174 |
tree_hash: cs.hash(&[1, 2, 3]).await.unwrap(), |
| 175 |
confirmed_transcript_hash: cs.hash(&[3, 2, 1]).await.unwrap().into(), |
| 176 |
extensions: ExtensionList::from(vec![]), |
| 177 |
} |
| 178 |
} |
| 179 |
|
| 180 |
#[cfg(feature = "prior_epoch")] |
| 181 |
pub(crate) fn get_test_group_context_with_id( |
| 182 |
group_id: Vec<u8>, |
| 183 |
epoch: u64, |
| 184 |
cipher_suite: CipherSuite, |
| 185 |
) -> GroupContext { |
| 186 |
GroupContext { |
| 187 |
protocol_version: TEST_PROTOCOL_VERSION, |
| 188 |
cipher_suite, |
| 189 |
group_id, |
| 190 |
epoch, |
| 191 |
tree_hash: vec![], |
| 192 |
confirmed_transcript_hash: ConfirmedTranscriptHash::from(vec![]), |
| 193 |
extensions: ExtensionList::from(vec![]), |
| 194 |
} |
| 195 |
} |
| 196 |
|
| 197 |
pub(crate) fn group_extensions() -> ExtensionList { |
| 198 |
let required_capabilities = RequiredCapabilitiesExt::default(); |
| 199 |
|
| 200 |
let mut extensions = ExtensionList::new(); |
| 201 |
extensions.set_from(required_capabilities).unwrap(); |
| 202 |
extensions |
| 203 |
} |
| 204 |
|
| 205 |
pub(crate) fn lifetime() -> Lifetime { |
| 206 |
Lifetime::years(1).unwrap() |
| 207 |
} |
| 208 |
|
| 209 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 210 |
pub(crate) async fn test_member( |
| 211 |
protocol_version: ProtocolVersion, |
| 212 |
cipher_suite: CipherSuite, |
| 213 |
identifier: &[u8], |
| 214 |
) -> (KeyPackageGeneration, SignatureSecretKey) { |
| 215 |
let (signing_identity, signing_key) = get_test_signing_identity(cipher_suite, identifier).await; |
| 216 |
|
| 217 |
let key_package_generator = KeyPackageGenerator { |
| 218 |
protocol_version, |
| 219 |
cipher_suite_provider: &test_cipher_suite_provider(cipher_suite), |
| 220 |
signing_identity: &signing_identity, |
| 221 |
signing_key: &signing_key, |
| 222 |
}; |
| 223 |
|
| 224 |
let key_package = key_package_generator |
| 225 |
.generate( |
| 226 |
lifetime(), |
| 227 |
get_test_capabilities(), |
| 228 |
ExtensionList::default(), |
| 229 |
ExtensionList::default(), |
| 230 |
) |
| 231 |
.await |
| 232 |
.unwrap(); |
| 233 |
|
| 234 |
(key_package, signing_key) |
| 235 |
} |
| 236 |
|
| 237 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 238 |
pub(crate) async fn test_group_custom( |
| 239 |
protocol_version: ProtocolVersion, |
| 240 |
cipher_suite: CipherSuite, |
| 241 |
extension_types: Vec<ExtensionType>, |
| 242 |
leaf_extensions: Option<ExtensionList>, |
| 243 |
commit_options: Option<CommitOptions>, |
| 244 |
) -> TestGroup { |
| 245 |
let leaf_extensions = leaf_extensions.unwrap_or_default(); |
| 246 |
let commit_options = commit_options.unwrap_or_default(); |
| 247 |
|
| 248 |
let (signing_identity, secret_key) = get_test_signing_identity(cipher_suite, b"member").await; |
| 249 |
let group = TestClientBuilder::new_for_test() |
| 250 |
.mls_rules(DefaultMlsRules::default().with_commit_options(commit_options)) |
| 251 |
.extension_types(extension_types) |
| 252 |
.protocol_versions(ProtocolVersion::all()) |
| 253 |
.used_protocol_version(protocol_version) |
| 254 |
.signing_identity(signing_identity.clone(), secret_key, cipher_suite) |
| 255 |
.build() |
| 256 |
.create_group_with_id(TEST_GROUP.to_vec(), group_extensions(), leaf_extensions) |
| 257 |
.await |
| 258 |
.unwrap(); |
| 259 |
|
| 260 |
TestGroup { group } |
| 261 |
} |
| 262 |
|
| 263 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 264 |
pub(crate) async fn test_group( |
| 265 |
protocol_version: ProtocolVersion, |
| 266 |
cipher_suite: CipherSuite, |
| 267 |
) -> TestGroup { |
| 268 |
test_group_custom( |
| 269 |
protocol_version, |
| 270 |
cipher_suite, |
| 271 |
Default::default(), |
| 272 |
None, |
| 273 |
None, |
| 274 |
) |
| 275 |
.await |
| 276 |
} |
| 277 |
|
| 278 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 279 |
pub(crate) async fn test_group_custom_config<F>( |
| 280 |
protocol_version: ProtocolVersion, |
| 281 |
cipher_suite: CipherSuite, |
| 282 |
custom: F, |
| 283 |
) -> TestGroup |
| 284 |
where |
| 285 |
F: FnOnce(TestClientBuilder) -> TestClientBuilder, |
| 286 |
{ |
| 287 |
let (signing_identity, secret_key) = get_test_signing_identity(cipher_suite, b"member").await; |
| 288 |
|
| 289 |
let client_builder = TestClientBuilder::new_for_test().used_protocol_version(protocol_version); |
| 290 |
|
| 291 |
let group = custom(client_builder) |
| 292 |
.signing_identity(signing_identity.clone(), secret_key, cipher_suite) |
| 293 |
.build() |
| 294 |
.create_group_with_id(TEST_GROUP.to_vec(), group_extensions(), Default::default()) |
| 295 |
.await |
| 296 |
.unwrap(); |
| 297 |
|
| 298 |
TestGroup { group } |
| 299 |
} |
| 300 |
|
| 301 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 302 |
pub(crate) async fn test_n_member_group( |
| 303 |
protocol_version: ProtocolVersion, |
| 304 |
cipher_suite: CipherSuite, |
| 305 |
num_members: usize, |
| 306 |
) -> Vec<TestGroup> { |
| 307 |
let group = test_group(protocol_version, cipher_suite).await; |
| 308 |
|
| 309 |
let mut groups = vec![group]; |
| 310 |
|
| 311 |
for i in 1..num_members { |
| 312 |
let (new_group, commit) = groups.get_mut(0).unwrap().join(&format!("name {i}")).await; |
| 313 |
process_commit(&mut groups, commit, 0).await; |
| 314 |
groups.push(new_group); |
| 315 |
} |
| 316 |
|
| 317 |
groups |
| 318 |
} |
| 319 |
|
| 320 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 321 |
pub(crate) async fn process_commit(groups: &mut [TestGroup], commit: MlsMessage, excluded: u32) { |
| 322 |
for g in groups |
| 323 |
.iter_mut() |
| 324 |
.filter(|g| g.current_member_index() != excluded) |
| 325 |
{ |
| 326 |
g.process_message(commit.clone()).await.unwrap(); |
| 327 |
} |
| 328 |
} |
| 329 |
|
| 330 |
pub(crate) fn get_test_25519_key(key_byte: u8) -> HpkePublicKey { |
| 331 |
vec![key_byte; 32].into() |
| 332 |
} |
| 333 |
|
| 334 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 335 |
pub(crate) async fn get_test_groups_with_features( |
| 336 |
n: usize, |
| 337 |
extensions: ExtensionList, |
| 338 |
leaf_extensions: ExtensionList, |
| 339 |
) -> Vec<Group<TestClientConfig>> { |
| 340 |
let mut clients = Vec::new(); |
| 341 |
|
| 342 |
for i in 0..n { |
| 343 |
let (identity, secret_key) = |
| 344 |
get_test_signing_identity(TEST_CIPHER_SUITE, format!("member{i}").as_bytes()).await; |
| 345 |
|
| 346 |
clients.push( |
| 347 |
TestClientBuilder::new_for_test() |
| 348 |
.extension_type(999.into()) |
| 349 |
.signing_identity(identity, secret_key, TEST_CIPHER_SUITE) |
| 350 |
.build(), |
| 351 |
); |
| 352 |
} |
| 353 |
|
| 354 |
let group = clients[0] |
| 355 |
.create_group_with_id(b"TEST GROUP".to_vec(), extensions, leaf_extensions.clone()) |
| 356 |
.await |
| 357 |
.unwrap(); |
| 358 |
|
| 359 |
let mut groups = vec![group]; |
| 360 |
|
| 361 |
for client in clients.iter().skip(1) { |
| 362 |
let key_package = client |
| 363 |
.generate_key_package_message(Default::default(), leaf_extensions.clone()) |
| 364 |
.await |
| 365 |
.unwrap(); |
| 366 |
|
| 367 |
let commit_output = groups[0] |
| 368 |
.commit_builder() |
| 369 |
.add_member(key_package) |
| 370 |
.unwrap() |
| 371 |
.build() |
| 372 |
.await |
| 373 |
.unwrap(); |
| 374 |
|
| 375 |
groups[0].apply_pending_commit().await.unwrap(); |
| 376 |
|
| 377 |
for group in groups.iter_mut().skip(1) { |
| 378 |
group |
| 379 |
.process_incoming_message(commit_output.commit_message.clone()) |
| 380 |
.await |
| 381 |
.unwrap(); |
| 382 |
} |
| 383 |
|
| 384 |
groups.push( |
| 385 |
client |
| 386 |
.join_group(None, &commit_output.welcome_messages[0]) |
| 387 |
.await |
| 388 |
.unwrap() |
| 389 |
.0, |
| 390 |
); |
| 391 |
} |
| 392 |
|
| 393 |
groups |
| 394 |
} |
| 395 |
|
| 396 |
pub fn random_bytes(count: usize) -> Vec<u8> { |
| 397 |
let mut buf = vec![0; count]; |
| 398 |
rand::thread_rng().fill_bytes(&mut buf); |
| 399 |
buf |
| 400 |
} |
| 401 |
|
| 402 |
pub(crate) struct GroupWithoutKeySchedule { |
| 403 |
inner: Group<TestClientConfig>, |
| 404 |
pub secrets: Option<(TreeKemPrivate, PathSecret)>, |
| 405 |
pub provisional_public_state: Option<ProvisionalState>, |
| 406 |
} |
| 407 |
|
| 408 |
impl Deref for GroupWithoutKeySchedule { |
| 409 |
type Target = Group<TestClientConfig>; |
| 410 |
|
| 411 |
#[cfg_attr(coverage_nightly, coverage(off))] |
| 412 |
fn deref(&self) -> &Self::Target { |
| 413 |
&self.inner |
| 414 |
} |
| 415 |
} |
| 416 |
|
| 417 |
impl DerefMut for GroupWithoutKeySchedule { |
| 418 |
#[cfg_attr(coverage_nightly, coverage(off))] |
| 419 |
fn deref_mut(&mut self) -> &mut Self::Target { |
| 420 |
&mut self.inner |
| 421 |
} |
| 422 |
} |
| 423 |
|
| 424 |
#[cfg(feature = "rfc_compliant")] |
| 425 |
impl GroupWithoutKeySchedule { |
| 426 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 427 |
pub async fn new(cs: CipherSuite) -> Self { |
| 428 |
Self { |
| 429 |
inner: test_group(TEST_PROTOCOL_VERSION, cs).await.group, |
| 430 |
secrets: None, |
| 431 |
provisional_public_state: None, |
| 432 |
} |
| 433 |
} |
| 434 |
} |
| 435 |
|
| 436 |
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)] |
| 437 |
#[cfg_attr(all(target_arch = "wasm32", mls_build_async), maybe_async::must_be_async(?Send))] |
| 438 |
#[cfg_attr( |
| 439 |
all(not(target_arch = "wasm32"), mls_build_async), |
| 440 |
maybe_async::must_be_async |
| 441 |
)] |
| 442 |
impl MessageProcessor for GroupWithoutKeySchedule { |
| 443 |
type CipherSuiteProvider = <Group<TestClientConfig> as MessageProcessor>::CipherSuiteProvider; |
| 444 |
type OutputType = <Group<TestClientConfig> as MessageProcessor>::OutputType; |
| 445 |
type PreSharedKeyStorage = <Group<TestClientConfig> as MessageProcessor>::PreSharedKeyStorage; |
| 446 |
type IdentityProvider = <Group<TestClientConfig> as MessageProcessor>::IdentityProvider; |
| 447 |
type MlsRules = <Group<TestClientConfig> as MessageProcessor>::MlsRules; |
| 448 |
|
| 449 |
fn group_state(&self) -> &GroupState { |
| 450 |
self.inner.group_state() |
| 451 |
} |
| 452 |
|
| 453 |
#[cfg_attr(coverage_nightly, coverage(off))] |
| 454 |
fn group_state_mut(&mut self) -> &mut GroupState { |
| 455 |
self.inner.group_state_mut() |
| 456 |
} |
| 457 |
|
| 458 |
fn mls_rules(&self) -> Self::MlsRules { |
| 459 |
self.inner.mls_rules() |
| 460 |
} |
| 461 |
|
| 462 |
fn identity_provider(&self) -> Self::IdentityProvider { |
| 463 |
self.inner.identity_provider() |
| 464 |
} |
| 465 |
|
| 466 |
fn cipher_suite_provider(&self) -> &Self::CipherSuiteProvider { |
| 467 |
self.inner.cipher_suite_provider() |
| 468 |
} |
| 469 |
|
| 470 |
fn psk_storage(&self) -> Self::PreSharedKeyStorage { |
| 471 |
self.inner.psk_storage() |
| 472 |
} |
| 473 |
|
| 474 |
fn removal_proposal( |
| 475 |
&self, |
| 476 |
provisional_state: &ProvisionalState, |
| 477 |
) -> Option<ProposalInfo<RemoveProposal>> { |
| 478 |
self.inner.removal_proposal(provisional_state) |
| 479 |
} |
| 480 |
|
| 481 |
#[cfg(feature = "private_message")] |
| 482 |
#[cfg_attr(coverage_nightly, coverage(off))] |
| 483 |
fn min_epoch_available(&self) -> Option<u64> { |
| 484 |
self.inner.min_epoch_available() |
| 485 |
} |
| 486 |
|
| 487 |
async fn apply_update_path( |
| 488 |
&mut self, |
| 489 |
sender: LeafIndex, |
| 490 |
update_path: &ValidatedUpdatePath, |
| 491 |
provisional_state: &mut ProvisionalState, |
| 492 |
) -> Result<Option<(TreeKemPrivate, PathSecret)>, MlsError> { |
| 493 |
self.inner |
| 494 |
.apply_update_path(sender, update_path, provisional_state) |
| 495 |
.await |
| 496 |
} |
| 497 |
|
| 498 |
#[cfg(feature = "private_message")] |
| 499 |
#[cfg_attr(coverage_nightly, coverage(off))] |
| 500 |
async fn process_ciphertext( |
| 501 |
&mut self, |
| 502 |
cipher_text: &PrivateMessage, |
| 503 |
) -> Result<EventOrContent<Self::OutputType>, MlsError> { |
| 504 |
self.inner.process_ciphertext(cipher_text).await |
| 505 |
} |
| 506 |
|
| 507 |
#[cfg_attr(coverage_nightly, coverage(off))] |
| 508 |
async fn verify_plaintext_authentication( |
| 509 |
&self, |
| 510 |
message: PublicMessage, |
| 511 |
) -> Result<EventOrContent<Self::OutputType>, MlsError> { |
| 512 |
self.inner.verify_plaintext_authentication(message).await |
| 513 |
} |
| 514 |
|
| 515 |
async fn update_key_schedule( |
| 516 |
&mut self, |
| 517 |
secrets: Option<(TreeKemPrivate, PathSecret)>, |
| 518 |
_interim_transcript_hash: InterimTranscriptHash, |
| 519 |
_confirmation_tag: &ConfirmationTag, |
| 520 |
provisional_public_state: ProvisionalState, |
| 521 |
) -> Result<(), MlsError> { |
| 522 |
self.provisional_public_state = Some(provisional_public_state); |
| 523 |
self.secrets = secrets; |
| 524 |
Ok(()) |
| 525 |
} |
| 526 |
} |