IOSAD-93 PEPSession
authorDirk Zimmermann <dirk@pep-project.org>
Wed, 16 May 2018 15:40:38 +0200
changeset 61135c2fdba3af6
parent 610 3b2e6bc63f51
child 612 be742db91ccb
IOSAD-93 PEPSession
pEpObjCAdapter/PEPSession.m
     1.1 --- a/pEpObjCAdapter/PEPSession.m	Wed May 16 15:40:37 2018 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSession.m	Wed May 16 15:40:38 2018 +0200
     1.3 @@ -142,6 +142,40 @@
     1.4              error:error];
     1.5  }
     1.6  
     1.7 +- (PEPDict * _Nullable)encryptMessageDict:(PEPDict * _Nonnull)messageDict
     1.8 +                                    toFpr:(NSString * _Nonnull)toFpr
     1.9 +                                encFormat:(PEP_enc_format)encFormat
    1.10 +                                    flags:(PEP_decrypt_flags)flags
    1.11 +                                   status:(PEP_STATUS * _Nullable)status
    1.12 +                                    error:(NSError * _Nullable * _Nullable)error __deprecated
    1.13 +{
    1.14 +    PEPInternalSession *session = [PEPSessionProvider session];
    1.15 +    return [session
    1.16 +            encryptMessageDict:messageDict
    1.17 +            toFpr:toFpr
    1.18 +            encFormat:encFormat
    1.19 +            flags:flags
    1.20 +            status:status
    1.21 +            error:error];
    1.22 +}
    1.23 +
    1.24 +- (PEPMessage * _Nullable)encryptMessage:(PEPMessage * _Nonnull)message
    1.25 +                                   toFpr:(NSString * _Nonnull)toFpr
    1.26 +                               encFormat:(PEP_enc_format)encFormat
    1.27 +                                   flags:(PEP_decrypt_flags)flags
    1.28 +                                  status:(PEP_STATUS * _Nullable)status
    1.29 +                                   error:(NSError * _Nullable * _Nullable)error
    1.30 +{
    1.31 +    PEPInternalSession *session = [PEPSessionProvider session];
    1.32 +    return [session
    1.33 +            encryptMessage:message
    1.34 +            toFpr:toFpr
    1.35 +            encFormat:encFormat
    1.36 +            flags:flags
    1.37 +            status:status
    1.38 +            error:error];
    1.39 +}
    1.40 +
    1.41  - (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage * _Nonnull)message
    1.42                                             error:(NSError * _Nullable * _Nullable)error
    1.43  {