IOSAD-172 Define new error domains IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Sat, 27 Jun 2020 10:31:35 +0200
branchIOSAD-172
changeset 14890af981323e09
parent 1488 70b0985a4b9b
child 1490 2ce9100eb123
IOSAD-172 Define new error domains
PEPObjCAdapterFramework/PEPSessionProtocol.m
pEpObjCAdapter.xcodeproj/project.pbxproj
pEpObjCAdapterFramework/PEPSessionProtocol.h
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/PEPObjCAdapterFramework/PEPSessionProtocol.m	Sat Jun 27 10:31:35 2020 +0200
     1.3 @@ -0,0 +1,13 @@
     1.4 +//
     1.5 +//  PEPSessionProtocol.m
     1.6 +//  PEPObjCAdapterFramework
     1.7 +//
     1.8 +//  Created by Dirk Zimmermann on 27.06.20.
     1.9 +//  Copyright © 2020 p≡p. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#import <Foundation/Foundation.h>
    1.13 +
    1.14 +static NSString * _Nonnull PEPObjCAdapterEngineStatusErrorDomain = @"PEPObjCAdapterEngineStatusErrorDomain";
    1.15 +
    1.16 +static NSString * _Nonnull PEPObjCAdapterErrorDomain = @"PEPObjCAdapterErrorDomain";
     2.1 --- a/pEpObjCAdapter.xcodeproj/project.pbxproj	Sat Jun 27 10:02:40 2020 +0200
     2.2 +++ b/pEpObjCAdapter.xcodeproj/project.pbxproj	Sat Jun 27 10:31:35 2020 +0200
     2.3 @@ -27,6 +27,7 @@
     2.4  		433DFBAD24A5E04000AB373B /* PEPPassphraseCacheEntry.m in Sources */ = {isa = PBXBuildFile; fileRef = 433DFBAB24A5E04000AB373B /* PEPPassphraseCacheEntry.m */; };
     2.5  		433DFBB724A61D4B00AB373B /* PEPInternalSession+PassphraseCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 433DFBB524A61D4B00AB373B /* PEPInternalSession+PassphraseCache.h */; };
     2.6  		433DFBB824A61D4B00AB373B /* PEPInternalSession+PassphraseCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 433DFBB624A61D4B00AB373B /* PEPInternalSession+PassphraseCache.m */; };
     2.7 +		433DFBBC24A73AD400AB373B /* PEPSessionProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 433DFBBB24A73AD400AB373B /* PEPSessionProtocol.m */; };
     2.8  		434226811D4F60000083ED79 /* PepTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 434226801D4F60000083ED79 /* PepTests.m */; };
     2.9  		43589EF724A4A3B70079BEA2 /* PEPPassphraseCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 43589EF524A4A3B70079BEA2 /* PEPPassphraseCache.h */; };
    2.10  		43589EF924A4A3B70079BEA2 /* PEPPassphraseCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 43589EF624A4A3B70079BEA2 /* PEPPassphraseCache.m */; };
    2.11 @@ -177,6 +178,7 @@
    2.12  		433DFBAE24A5ED0D00AB373B /* PEPPassphraseCacheInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPPassphraseCacheInternal.h; sourceTree = "<group>"; };
    2.13  		433DFBB524A61D4B00AB373B /* PEPInternalSession+PassphraseCache.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PEPInternalSession+PassphraseCache.h"; sourceTree = "<group>"; };
    2.14  		433DFBB624A61D4B00AB373B /* PEPInternalSession+PassphraseCache.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "PEPInternalSession+PassphraseCache.m"; sourceTree = "<group>"; };
    2.15 +		433DFBBB24A73AD400AB373B /* PEPSessionProtocol.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPSessionProtocol.m; sourceTree = "<group>"; };
    2.16  		433E28901FA741DE00E359B3 /* PEPIdentity.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPIdentity.m; sourceTree = "<group>"; };
    2.17  		434226801D4F60000083ED79 /* PepTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PepTests.m; sourceTree = "<group>"; };
    2.18  		434ED6D4207E27B8000A7590 /* PEPAutoPointer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPAutoPointer.h; sourceTree = "<group>"; };
    2.19 @@ -406,6 +408,7 @@
    2.20  				435C0CA022292E7C0025C6B5 /* PEPTypes.h */,
    2.21  				43FF2ECC2226AE7E000D9567 /* PEPEngineTypes.h */,
    2.22  				435F518F22204A67006EB11F /* PEPSessionProtocol.h */,
    2.23 +				433DFBBB24A73AD400AB373B /* PEPSessionProtocol.m */,
    2.24  				435F5163222045FB006EB11F /* PEPIdentity.h */,
    2.25  				43E3985D221D7E56008E7983 /* PEPObjCAdapterFramework.h */,
    2.26  				43E3985E221D7E56008E7983 /* Info.plist */,
    2.27 @@ -654,6 +657,7 @@
    2.28  				435C0CAD222930340025C6B5 /* PEPConstants.m in Sources */,
    2.29  				433DFBAD24A5E04000AB373B /* PEPPassphraseCacheEntry.m in Sources */,
    2.30  				435F5169222046C2006EB11F /* PEPCSVScanner.m in Sources */,
    2.31 +				433DFBBC24A73AD400AB373B /* PEPSessionProtocol.m in Sources */,
    2.32  				435F5179222046C2006EB11F /* NSNumber+PEPRating.m in Sources */,
    2.33  				435F516B222046C2006EB11F /* PEPMessageUtil.m in Sources */,
    2.34  				435F5171222046C2006EB11F /* PEPCopyableThread.m in Sources */,
     3.1 --- a/pEpObjCAdapterFramework/PEPSessionProtocol.h	Sat Jun 27 10:02:40 2020 +0200
     3.2 +++ b/pEpObjCAdapterFramework/PEPSessionProtocol.h	Sat Jun 27 10:31:35 2020 +0200
     3.3 @@ -15,6 +15,12 @@
     3.4  @class PEPIdentity;
     3.5  @class PEPMessage;
     3.6  
     3.7 +/// Domain for errors indicated by the pEp engine.
     3.8 +static NSString * _Nonnull PEPObjCAdapterEngineStatusErrorDomain;
     3.9 +
    3.10 +/// Domain for errors indicated by the pEp adapter itself.
    3.11 +static NSString * _Nonnull PEPObjCAdapterErrorDomain;
    3.12 +
    3.13  @protocol PEPSessionProtocol <NSObject>
    3.14  
    3.15  /** Decrypt a message */