Browse Source

IOSAD-177 (Internal) access to passphrase provider

IOSAD-177
Dirk Zimmermann 1 year ago
parent
commit
4f850d335c
2 changed files with 9 additions and 0 deletions
  1. +4
    -0
      pEpObjCAdapter/PEPObjCAdapter+Internal.h
  2. +5
    -0
      pEpObjCAdapter/PEPObjCAdapter.m

+ 4
- 0
pEpObjCAdapter/PEPObjCAdapter+Internal.h View File

@ -11,6 +11,7 @@
#import "PEPQueue.h"
#import "PEPInternalSession.h"
#import "PEPPassphraseProviderProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@ -32,6 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
/// The passphrase to be used for new own keys, can be `nil`.
+ (NSString * _Nullable)passphraseForNewKeys;
/// Get the currently set passphrase provider.
+ (id<PEPPassphraseProviderProtocol> _Nullable)passphraseProvider;
@end
NS_ASSUME_NONNULL_END


+ 5
- 0
pEpObjCAdapter/PEPObjCAdapter.m View File

@ -101,6 +101,11 @@ static id<PEPPassphraseProviderProtocol> s_passphraseProvider = nil;
s_passphraseProvider = passphraseProvider;
}
+ (id<PEPPassphraseProviderProtocol> _Nullable)passphraseProvider
{
return s_passphraseProvider;
}
#pragma mark - DB PATHS
+ (void)initialize


Loading…
Cancel
Save