@@ -11,7 +11,7 @@ use crate::{
11
11
Conversation as _, ConversationGuard , ConversationWithMls as _, Error , Result , commit:: MlsCommitBundle ,
12
12
} ,
13
13
credential:: {
14
- CredentialBundle ,
14
+ Credential ,
15
15
crl:: { extract_crl_uris_from_credentials, get_new_crl_distribution_points} ,
16
16
} ,
17
17
} ,
@@ -109,7 +109,7 @@ impl ConversationGuard {
109
109
) -> Result < ( NewCrlDistributionPoints , MlsCommitBundle ) > {
110
110
self . ensure_no_pending_commit ( ) . await ?;
111
111
let backend = self . crypto_provider ( ) . await ?;
112
- let credential = self . credential_bundle ( ) . await ?;
112
+ let credential = self . credential ( ) . await ?;
113
113
let signer = credential. signature_key ( ) ;
114
114
let mut conversation = self . conversation_mut ( ) . await ;
115
115
@@ -155,7 +155,7 @@ impl ConversationGuard {
155
155
pub async fn remove_members ( & mut self , clients : & [ ClientId ] ) -> Result < ( ) > {
156
156
self . ensure_no_pending_commit ( ) . await ?;
157
157
let backend = self . crypto_provider ( ) . await ?;
158
- let credential = self . credential_bundle ( ) . await ?;
158
+ let credential = self . credential ( ) . await ?;
159
159
let signer = credential. signature_key ( ) ;
160
160
let mut conversation = self . inner . write ( ) . await ;
161
161
@@ -205,19 +205,19 @@ impl ConversationGuard {
205
205
/// [crate::transaction_context::TransactionContext::e2ei_new_activation_enrollment] or
206
206
/// [crate::transaction_context::TransactionContext::e2ei_new_rotate_enrollment] and having saved it with
207
207
/// [crate::transaction_context::TransactionContext::save_x509_credential].
208
- pub async fn e2ei_rotate ( & mut self , cb : Option < & CredentialBundle > ) -> Result < ( ) > {
208
+ pub async fn e2ei_rotate ( & mut self , cb : Option < & Credential > ) -> Result < ( ) > {
209
209
let client = & self . session ( ) . await ?;
210
210
let conversation = self . conversation ( ) . await ;
211
211
212
212
let cb = match cb {
213
213
Some ( cb) => cb,
214
- None => & client
215
- . find_most_recent_credential_bundle (
214
+ None => & * client
215
+ . find_most_recent_credential (
216
216
conversation. ciphersuite ( ) . signature_algorithm ( ) ,
217
217
MlsCredentialType :: X509 ,
218
218
)
219
219
. await
220
- . map_err ( RecursiveError :: mls_client ( "finding most recent x509 credential bundle " ) ) ?,
220
+ . map_err ( RecursiveError :: mls_client ( "finding most recent x509 credential" ) ) ?,
221
221
} ;
222
222
223
223
let mut leaf_node = conversation
@@ -237,20 +237,20 @@ impl ConversationGuard {
237
237
238
238
pub ( crate ) async fn update_key_material_inner (
239
239
& mut self ,
240
- cb : Option < & CredentialBundle > ,
240
+ cb : Option < & Credential > ,
241
241
leaf_node : Option < LeafNode > ,
242
242
) -> Result < MlsCommitBundle > {
243
243
self . ensure_no_pending_commit ( ) . await ?;
244
244
let session = & self . session ( ) . await ?;
245
245
let backend = & self . crypto_provider ( ) . await ?;
246
246
let mut conversation = self . conversation_mut ( ) . await ;
247
247
let cb = match cb {
248
- None => & conversation. find_most_recent_credential_bundle ( session) . await ?,
248
+ None => & conversation. find_most_recent_credential ( session) . await ?,
249
249
Some ( cb) => cb,
250
250
} ;
251
251
let ( commit, welcome, group_info) = conversation
252
252
. group
253
- . explicit_self_update ( backend, & cb. signature_key , leaf_node)
253
+ . explicit_self_update ( backend, & cb. signature_key_pair , leaf_node)
254
254
. await
255
255
. map_err ( MlsError :: wrap ( "group self update" ) ) ?;
256
256
@@ -288,7 +288,7 @@ impl ConversationGuard {
288
288
return Ok ( None ) ;
289
289
}
290
290
291
- let signer = & inner. find_most_recent_credential_bundle ( session) . await ?. signature_key ;
291
+ let signer = & inner. find_most_recent_credential ( session) . await ?. signature_key_pair ;
292
292
293
293
let ( commit, welcome, gi) = inner
294
294
. group
@@ -317,7 +317,7 @@ impl ConversationGuard {
317
317
if proposals. is_empty ( ) {
318
318
return Ok ( None ) ;
319
319
}
320
- let signer = & inner. find_most_recent_credential_bundle ( session) . await ?. signature_key ;
320
+ let signer = & inner. find_most_recent_credential ( session) . await ?. signature_key_pair ;
321
321
322
322
let ( commit, welcome, gi) = inner
323
323
. group
0 commit comments