Browse Source

IOS-1480 New types for PEPSession.

IOS-1480
Dirk Zimmermann 4 years ago
parent
commit
4f7521cbcb
1 changed files with 27 additions and 27 deletions
  1. +27
    -27
      pEpObjCAdapter/PEPSession.m

+ 27
- 27
pEpObjCAdapter/PEPSession.m View File

@ -22,10 +22,10 @@
}
- (PEPDict * _Nullable)decryptMessageDict:(PEPMutableDict * _Nonnull)messageDict
flags:(PEP_decrypt_flags * _Nullable)flags
rating:(PEP_rating * _Nullable)rating
flags:(PEPDecryptFlags * _Nullable)flags
rating:(PEPRating * _Nullable)rating
extraKeys:(PEPStringList * _Nullable * _Nullable)extraKeys
status:(PEP_STATUS * _Nullable)status
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -39,10 +39,10 @@
}
- (PEPMessage * _Nullable)decryptMessage:(PEPMessage * _Nonnull)message
flags:(PEP_decrypt_flags * _Nullable)flags
rating:(PEP_rating * _Nullable)rating
flags:(PEPDecryptFlags * _Nullable)flags
rating:(PEPRating * _Nullable)rating
extraKeys:(PEPStringList * _Nullable * _Nullable)extraKeys
status:(PEP_STATUS * _Nullable)status
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -57,8 +57,8 @@
- (BOOL)reEvaluateMessageDict:(PEPDict * _Nonnull)messageDict
xKeyList:(PEPStringList * _Nullable)xKeyList
rating:(PEP_rating * _Nonnull)rating
status:(PEP_STATUS * _Nullable)status
rating:(PEPRating * _Nonnull)rating
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -71,8 +71,8 @@
- (BOOL)reEvaluateMessage:(PEPMessage * _Nonnull)message
xKeyList:(PEPStringList * _Nullable)xKeyList
rating:(PEP_rating * _Nonnull)rating
status:(PEP_STATUS * _Nullable)status
rating:(PEPRating * _Nonnull)rating
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -85,8 +85,8 @@
- (PEPDict * _Nullable)encryptMessageDict:(PEPDict * _Nonnull)messageDict
extraKeys:(PEPStringList * _Nullable)extraKeys
encFormat:(PEP_enc_format)encFormat
status:(PEP_STATUS * _Nullable)status
encFormat:(PEPEncFormat)encFormat
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -100,8 +100,8 @@
- (PEPMessage * _Nullable)encryptMessage:(PEPMessage * _Nonnull)message
extraKeys:(PEPStringList * _Nullable)extraKeys
encFormat:(PEP_enc_format)encFormat
status:(PEP_STATUS * _Nullable)status
encFormat:(PEPEncFormat)encFormat
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -115,7 +115,7 @@
- (PEPMessage * _Nullable)encryptMessage:(PEPMessage * _Nonnull)message
extraKeys:(PEPStringList * _Nullable)extraKeys
status:(PEP_STATUS * _Nullable)status
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -125,7 +125,7 @@
- (PEPDict * _Nullable)encryptMessageDict:(PEPDict * _Nonnull)messageDict
forSelf:(PEPIdentity * _Nonnull)ownIdentity
extraKeys:(PEPStringList * _Nullable)extraKeys
status:(PEP_STATUS * _Nullable)status
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -140,7 +140,7 @@
- (PEPMessage * _Nullable)encryptMessage:(PEPMessage * _Nonnull)message
forSelf:(PEPIdentity * _Nonnull)ownIdentity
extraKeys:(PEPStringList * _Nullable)extraKeys
status:(PEP_STATUS * _Nullable)status
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -154,9 +154,9 @@
- (PEPDict * _Nullable)encryptMessageDict:(PEPDict * _Nonnull)messageDict
toFpr:(NSString * _Nonnull)toFpr
encFormat:(PEP_enc_format)encFormat
flags:(PEP_decrypt_flags)flags
status:(PEP_STATUS * _Nullable)status
encFormat:(PEPEncFormat)encFormat
flags:(PEPDecryptFlags)flags
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error __deprecated
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -171,9 +171,9 @@
- (PEPMessage * _Nullable)encryptMessage:(PEPMessage * _Nonnull)message
toFpr:(NSString * _Nonnull)toFpr
encFormat:(PEP_enc_format)encFormat
flags:(PEP_decrypt_flags)flags
status:(PEP_STATUS * _Nullable)status
encFormat:(PEPEncFormat)encFormat
flags:(PEPDecryptFlags)flags
status:(PEPStatus * _Nullable)status
error:(NSError * _Nullable * _Nullable)error
{
PEPInternalSession *session = [PEPSessionProvider session];
@ -304,13 +304,13 @@
return [session languageListWithError:error];
}
- (PEP_rating)ratingFromString:(NSString * _Nonnull)string
- (PEPRating)ratingFromString:(NSString * _Nonnull)string
{
PEPInternalSession *session = [PEPSessionProvider session];
return [session ratingFromString:string];
}
- (NSString * _Nonnull)stringFromRating:(PEP_rating)rating
- (NSString * _Nonnull)stringFromRating:(PEPRating)rating
{
PEPInternalSession *session = [PEPSessionProvider session];
return [session stringFromRating:rating];
@ -336,7 +336,7 @@
return [session configurePassiveModeEnabled:enabled];
}
- (BOOL)setFlags:(identity_flags_t)flags
- (BOOL)setFlags:(PEPIdentityFlags)flags
forIdentity:(PEPIdentity *)identity
error:(NSError * _Nullable * _Nullable)error
{
@ -351,7 +351,7 @@
return [session trustOwnKeyIdentity:identity error:error];
}
- (BOOL)deliverHandshakeResult:(sync_handshake_result)result
- (BOOL)deliverHandshakeResult:(SyncHandshakeResult)result
forPartner:(PEPIdentity * _Nonnull)partner
error:(NSError * _Nullable * _Nullable)error
{


Loading…
Cancel
Save