Non-crashing trust functions
authorDirk Zimmermann <dirk@pep-project.org>
Tue, 09 Aug 2016 16:24:40 +0200
changeset 144fc0760fbf19a
parent 143 aadf26861893
child 145 9d845900f02b
Non-crashing trust functions
pEpiOSAdapter/PEPSession.h
pEpiOSAdapter/PEPSession.m
     1.1 --- a/pEpiOSAdapter/PEPSession.h	Mon Aug 08 17:26:52 2016 +0200
     1.2 +++ b/pEpiOSAdapter/PEPSession.h	Tue Aug 09 16:24:40 2016 +0200
     1.3 @@ -90,19 +90,19 @@
     1.4   Mark a key as trusted with a person.
     1.5   See `mySelf:(NSMutableDictionary *)identity` for an explanation of identities.
     1.6   */
     1.7 -- (void)trustPersonalKey:(nonnull NSDictionary *)identity;
     1.8 +- (void)trustPersonalKey:(nonnull NSMutableDictionary *)identity;
     1.9  
    1.10  /**
    1.11   if a key gets comprimized tell this using this message
    1.12   See `mySelf:(NSMutableDictionary *)identity` for an explanation of identities.
    1.13   */
    1.14 -- (void)keyCompromized:(nonnull NSDictionary *)identity;
    1.15 +- (void)keyCompromized:(nonnull NSMutableDictionary *)identity;
    1.16  
    1.17  /**
    1.18   Use this to undo keyCompromized or trustPersonalKey
    1.19   See `mySelf:(NSMutableDictionary *)identity` for an explanation of identities.
    1.20  */
    1.21 -- (void)keyResetTrust:(nonnull NSDictionary*)identity;
    1.22 +- (void)keyResetTrust:(nonnull NSMutableDictionary*)identity;
    1.23  
    1.24  #pragma mark -- Internal API (testing etc.)
    1.25  
     2.1 --- a/pEpiOSAdapter/PEPSession.m	Mon Aug 08 17:26:52 2016 +0200
     2.2 +++ b/pEpiOSAdapter/PEPSession.m	Tue Aug 09 16:24:40 2016 +0200
     2.3 @@ -248,7 +248,7 @@
     2.4      free_identity(ident);
     2.5  }
     2.6  
     2.7 -- (void)trustPersonalKey:(NSDictionary *)identity
     2.8 +- (void)trustPersonalKey:(NSMutableDictionary *)identity
     2.9  {
    2.10      pEp_identity *ident = PEP_identityDictToStruct(identity);
    2.11      
    2.12 @@ -260,7 +260,7 @@
    2.13      free_identity(ident);
    2.14  }
    2.15  
    2.16 -- (void)keyResetTrust:(NSDictionary *)identity
    2.17 +- (void)keyResetTrust:(NSMutableDictionary *)identity
    2.18  {
    2.19      pEp_identity *ident = PEP_identityDictToStruct(identity);
    2.20      
    2.21 @@ -272,7 +272,7 @@
    2.22      free_identity(ident);
    2.23  }
    2.24  
    2.25 -- (void)keyCompromized:(NSDictionary *)identity
    2.26 +- (void)keyCompromized:(NSMutableDictionary *)identity
    2.27  {
    2.28      pEp_identity *ident = PEP_identityDictToStruct(identity);
    2.29