IOSAD-177 Better method names for PEPPassphraseProviderProtocol

IOSAD-177
Dirk Zimmermann 3 years ago
parent e6ae5ed3ef
commit d49d27ed56

@ -32,7 +32,7 @@ typedef void (^PEPPassphraseProviderCallback)(NSString * _Nullable passphrase);
/// @param completion Callback that either retries the engine call that lead
/// to the adapter calling into the PEPPassphraseProviderProtocol delegate,
/// or, if the given passphrase is nil, return the error to the caller.
- (void)passphraseRequiredCompletion:(PEPPassphraseProviderCallback)completion;
- (void)passphraseRequired:(PEPPassphraseProviderCallback)completion;
/// Called by the adapter when the engine signals PEPStatusWrongPassphrase.
///
@ -41,7 +41,7 @@ typedef void (^PEPPassphraseProviderCallback)(NSString * _Nullable passphrase);
/// @param completion Callback that either retries the engine call that lead
/// to the adapter calling into the PEPPassphraseProviderProtocol delegate,
/// or, if the given passphrase is nil, return the error to the caller.
- (void)wrongPassphraseCompletion:(PEPPassphraseProviderCallback)completion;
- (void)wrongPassphrase:(PEPPassphraseProviderCallback)completion;
/// Signals that the passphrase indicated by the callback in one of the calls of
/// this delegate was too long and cannot be used.

@ -63,11 +63,11 @@
while (YES) {
if (lastPassphraseProviderStatus == PEP_PASSPHRASE_REQUIRED) {
dispatch_group_enter(group);
[passphraseProvider passphraseRequiredCompletion:passPhraseCallback];
[passphraseProvider passphraseRequired:passPhraseCallback];
dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
} else if (lastPassphraseProviderStatus == PEP_WRONG_PASSPHRASE) {
dispatch_group_enter(group);
[passphraseProvider wrongPassphraseCompletion:passPhraseCallback];
[passphraseProvider wrongPassphrase:passPhraseCallback];
dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
}

Loading…
Cancel
Save