Lines Matching refs:Some

85             hat: Mutex::new(Some(hat)),  in timestamp()
90 *self.hat.lock().unwrap() = Some(hat) in add_auth_token()
109 Some(result.context(ks_err!( in get_auth_tokens()
192 if let Some((_, recv)) = recv { in add_auth_token()
220 if let Some(state_arc) = self.0.upgrade() { in add_auth_token()
255 Some(OperationChallenge { challenge }) in finalize_create_authorization()
265 Some(OperationChallenge { challenge }) in finalize_create_authorization()
292 if let Some(ref confirmation_token_receiver) = self.confirmation_token_receiver { in before_finish()
294 if let Some(ref receiver) = *locked_receiver { in before_finish()
299 Ok(t) => confirmation_token = Some(t), in before_finish()
320 if let Some(key_id) = self.key_usage_limited { in after_finish()
340 Some(auth_request.get_auth_tokens().context("In AuthInfo::get_auth_tokens.")?) in get_auth_tokens()
345 if let Some((hat, tst)) = deferred_tokens { in get_auth_tokens()
351 DeferredAuthState::Token(hat, tst) => Ok((Some((*hat).clone()), (*tst).clone())), in get_auth_tokens()
393 *self.confirmation_token_receiver.lock().unwrap() = Some(confirmation_token_receiver); in install_confirmation_token_receiver()
415 Some((key_id, key_params)) => (*key_id, key_params), in authorize_create()
492 key_time_out = Some(*t as i64); in authorize_create()
495 user_auth_type = Some(*a); in authorize_create()
539 key_usage_limited = Some(key_id); in authorize_create()
542 confirmation_token_receiver = Some(self.confirmation_token_receiver.clone()); in authorize_create()
545 max_boot_level = Some(*level); in authorize_create()
595 if let Some(level) = max_boot_level { in authorize_create()
605 } else if let Some(key_time_out) = key_time_out { in authorize_create()
607 Some(auth_type) => hat.satisfies(&user_secure_ids, auth_type), in authorize_create()
630 (Some(hat.take_auth_token()), state) in authorize_create()
658 if let (Some(auth_type), true) = (user_auth_type, timeout_bound) { in authorize_create()
664 Some( in authorize_create()
674 (Some(hat), Some(key_time_out)) => { in authorize_create()
688 Some(hat) in authorize_create()
690 (Some(hat), None) => Some(hat), in authorize_create()
693 (None, Some(_)) => panic!("Logical error."), in authorize_create()
702 (Some(_), true, true) => (None, DeferredAuthState::TimeStampedOpAuthRequired), in authorize_create()
703 (Some(hat), true, false) => ( in authorize_create()
704 Some(hat.auth_token().clone()), in authorize_create()
707 (Some(hat), false, true) => { in authorize_create()
708 (Some(hat.take_auth_token()), DeferredAuthState::OpAuthRequired) in authorize_create()
710 (Some(hat), false, false) => { in authorize_create()
711 (Some(hat.take_auth_token()), DeferredAuthState::NoAuthRequired) in authorize_create()
788 if let Some(flags) = flags { in super_encryption_required()
841 let auth_token = if let Some(auth_token_entry) = result { in get_auth_tokens()
856 if let Some(auth_token_entry) = result { in get_auth_tokens()