this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Various framework stub updates/fixes

Affected frameworks include: Accounts, CryptoTokenKit, Network, and most notably: SecurityFoundation. If we ever want to get the `security` CLI tool to actually do stuff and get Security keychains up and running, we're going to need to actually implement SecurityFoundation, which seems to just be an Objective-C wrapper around CommonCrypto

+453 -19
+25
src/frameworks/Accounts/include/Accounts/Accounts_Private.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #ifndef _ACCOUNTS_PRIVATE_H_ 21 + #define _ACCOUNTS_PRIVATE_H_ 22 + 23 + 24 + 25 + #endif // _ACCOUNTS_PRIVATE_H_
+2
src/frameworks/CryptoTokenKit/include/ACMDefs.h
··· 8 8 // these are guessed and not verified 9 9 10 10 #define kACMPolicyDeviceOwnerAuthentication "ACMPolicyDeviceOwnerAuthentication" 11 + #define kACMPassphrasePurposeGeneral "ACMPassphrasePurposeGeneral" 12 + #define kACMScopeContext "ACMScopeContext" 11 13 12 14 #endif
+10
src/frameworks/CryptoTokenKit/include/ACMLib.h
··· 1 + #ifndef _ACMLIB_H_ 2 + #define _ACMLIB_H_ 3 + 4 + #include <ACMAclDefs.h> 5 + #include <ACMDefs.h> 6 + 7 + // CF type 8 + typedef void* ACMContextRef; 9 + 10 + #endif // _ACMLIB_H_
+2
src/frameworks/Network/CMakeLists.txt
··· 109 109 objc 110 110 Foundation 111 111 ) 112 + 113 + reexport(Network libnetwork ${CMAKE_BINARY_DIR}/src/external/libnetwork/libnetwork.dylib)
+2
src/frameworks/Network/include/Network/Network.h
··· 120 120 #import <Network/NWPathEvaluator.h> 121 121 #import <Network/NWAWDLibnetcoreTCPECNStatsReport.h> 122 122 123 + #import <nw/nw.h> 124 + 123 125 void* NWCreateDispatchDataFromNSData(void); 124 126 void* NWCreateNSDataFromDispatchData(void); 125 127 void* NWMonitorStatusToString(void);
+27
src/frameworks/Network/include/Network/Network_Private.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #ifndef _NETWORK_NETWORK_PRIVATE_H_ 21 + #define _NETWORK_NETWORK_PRIVATE_H_ 22 + 23 + #include <Network/Network.h> 24 + 25 + // nothing here yet 26 + 27 + #endif // _NETWORK_NETWORK_PRIVATE_H_
+1
src/frameworks/SecurityFoundation/CMakeLists.txt
··· 169 169 src/SFCertificateData_ivars.m 170 170 src/SFCertificateData.m 171 171 src/SecFoundationModVector.m 172 + src/SFKeychain.m 172 173 173 174 DEPENDENCIES 174 175 system
+25
src/frameworks/SecurityFoundation/include/SecurityFoundation/APIMacros.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #ifndef _SF_APIMACROS_H_ 21 + #define _SF_APIMACROS_H_ 22 + 23 + // nothing here yet 24 + 25 + #endif // _SF_APIMACROS_H_
+5
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFCertificateData.h
··· 18 18 */ 19 19 20 20 #include <Foundation/Foundation.h> 21 + #include <Security/SecCertificate.h> 21 22 22 23 @interface SFCertificateData : NSObject 24 + 25 + - (instancetype)initWithCertificate:(SecCertificateRef)certificate; 26 + 27 + - (NSData*)tabDelimitedTextData; 23 28 24 29 @end
+27
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFCredentialStore_Private.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #ifndef _SF_SFCREDENTIALSTORE_PRIVATE_H_ 21 + #define _SF_SFCREDENTIALSTORE_PRIVATE_H_ 22 + 23 + #import <SecurityFoundation/_SFCredentialStore.h> 24 + 25 + // nothing here yet 26 + 27 + #endif // _SF_SFCREDENTIALSTORE_PRIVATE_H_
+27
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFCredential_Private.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #ifndef _SF_SFCREDENTIAL_PRIVATE_H_ 21 + #define _SF_SFCREDENTIAL_PRIVATE_H_ 22 + 23 + #import <SecurityFoundation/_SFCredential.h> 24 + 25 + // nothing here yet 26 + 27 + #endif // _SF_SFCREDENTIAL_PRIVATE_H_
+20
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFCryptoServicesErrors.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + // nothing here for now
+22
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFEncryptionOperation.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <SecurityFoundation/_SFEncryptionOperation.h> 21 + 22 + // not sure if this should just be a symlink or what
+21 -2
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFKey.h
··· 1 - // created for Darling 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 2 19 3 - @class SFECKeyPair; 20 + #import <SecurityFoundation/_SFKey.h> 21 + #import <SecurityFoundation/_SFECKeyPair.h> 22 + #import <SecurityFoundation/_SFAESKey.h>
+22
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFKey_Private.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <SecurityFoundation/SFKey.h> 21 + 22 + // nothing else here for now
+41
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFKeychain.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #ifndef _SF_SFKEYCHAIN_H_ 21 + #define _SF_SFKEYCHAIN_H_ 22 + 23 + // not sure if this is the header that imports these 24 + // it could also be `SFCredential_Private.h` or `SFCredentialStore_Private.h` 25 + #import <SecurityFoundation/_SFPasswordCredential.h> 26 + #import <SecurityFoundation/_SFAccessPolicy.h> 27 + 28 + extern NSString* const SFKeychainErrorDomain; 29 + 30 + // not sure how these codes are supposed to be set up 31 + typedef NS_ENUM(NSInteger, SFKeychainError) { 32 + // doesn't start at `-1` because that's usually for "unknown" errors 33 + // these are guesses by the way 34 + SFKeychainErrorInvalidParameter = -2, 35 + SFKeychainErrorSaveFailed = -3, 36 + SFKeychainErrorMissingAccessGroup = -4, 37 + SFKeychainErrorInvalidPersistentIdentifier = -5, 38 + SFKeychainErrorSecureDecodeFailed = -6, 39 + }; 40 + 41 + #endif // _SF_SFKEYCHAIN_H_
+4
src/frameworks/SecurityFoundation/include/SecurityFoundation/SFSigningOperation.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 + #import <SecurityFoundation/_SFSignedData.h> 23 + 22 24 @protocol SFSigningOperation 23 25 24 26 @end 27 + 28 + #import <SecurityFoundation/_SFEC_X962SigningOperation.h>
+9 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFAESKey.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFAESKey : NSObject 22 + #import <SecurityFoundation/_SFKey.h> 23 + #import <SecurityFoundation/_SFAESKeySpecifier.h> 24 + 25 + #define SFAESKey _SFAESKey 26 + 27 + @interface SFAESKey : SFKey 28 + 29 + - (instancetype)initRandomKeyWithSpecifier:(SFAESKeySpecifier*)specifier error:(NSError**)error; 30 + - (instancetype)initWithData:(NSData*)data specifier:(SFAESKeySpecifier*)specifier error:(NSError**)error; 23 31 24 32 @end
+11 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFAESKeySpecifier.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFAESKeySpecifier : NSObject 22 + #import <SecurityFoundation/_SFKeySpecifier.h> 23 + 24 + #define SFAESKeySpecifier _SFAESKeySpecifier 25 + 26 + typedef NS_ENUM(NSInteger, SFAESKeyBitSize) { 27 + SFAESKeyBitSize256, 28 + }; 29 + 30 + @interface SFAESKeySpecifier : SFKeySpecifier 31 + 32 + - (instancetype)initWithBitSize:(SFAESKeyBitSize)bitSize; 23 33 24 34 @end
+21 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFAccessPolicy.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFAccessPolicy : NSObject 22 + #define SFAccessPolicy _SFAccessPolicy 23 + 24 + typedef NS_ENUM(NSInteger, SFAccessible) { 25 + SFAccessibleAfterFirstUnlock, 26 + }; 27 + 28 + typedef NS_ENUM(NSInteger, SFSharingPolicy) { 29 + SFSharingPolicyThisDeviceOnly, 30 + }; 31 + 32 + // not sure what `accessibility` is 33 + // it's not a class, so i guess it's a structure? 34 + typedef struct SFAccessibilityStructure { 35 + SFAccessible mode; 36 + } SFAccessibilityStructure; 37 + 38 + @interface SFAccessPolicy : NSObject 39 + 40 + @property (nonatomic) SFAccessibilityStructure accessibility; 41 + @property (nonatomic) SFSharingPolicy sharingPolicy; 42 + @property (copy, nonatomic) NSString* accessGroup; 23 43 24 44 @end
+5 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFAuthenticatedCiphertext.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFAuthenticatedCiphertext : NSObject 22 + #import <SecurityFoundation/_SFCiphertext.h> 23 + 24 + #define SFAuthenticatedCiphertext _SFAuthenticatedCiphertext 25 + 26 + @interface SFAuthenticatedCiphertext : SFCiphertext 23 27 24 28 @end
+19 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFAuthenticatedEncryptionOperation.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFAuthenticatedEncryptionOperation : NSObject 22 + #import <SecurityFoundation/SFEncryptionOperation.h> 23 + #import <SecurityFoundation/_SFAESKeySpecifier.h> 24 + #import <SecurityFoundation/_SFAuthenticatedCiphertext.h> 25 + #import <SecurityFoundation/_SFAESKey.h> 26 + 27 + #define SFAuthenticatedEncryptionOperation _SFAuthenticatedEncryptionOperation 28 + 29 + // i'm 90% sure this is AES-GCM 30 + 31 + @interface SFAuthenticatedEncryptionOperation : NSObject <SFEncryptionOperation> 32 + 33 + - (instancetype)initWithKeySpecifier:(SFAESKeySpecifier*)keySpecifier; 34 + 35 + - (SFAuthenticatedCiphertext*)encrypt:(NSData*)data withKey:(SFAESKey*)key error:(NSError**)error; 36 + - (SFAuthenticatedCiphertext*)encrypt:(NSData*)data withKey:(SFAESKey*)key additionalAuthenticatedData:(NSData*)aad error:(NSError**)error; 37 + 38 + // common sense tells me that the input parameter should be `SFAuthenticatedCiphertext*`, 39 + // but `SecDbKeychainItemV7.m` in Security says otherwise 40 + - (NSData*)decrypt:(NSData*)data withKey:(SFAESKey*)key error:(NSError**)error; 23 41 24 42 @end
+5 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFCiphertext.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFCiphertext : NSObject 22 + #define SFCiphertext _SFCiphertext 23 + 24 + @interface SFCiphertext : NSObject 23 25 24 26 @end 27 + 28 + #import <SecurityFoundation/_SFAuthenticatedCiphertext.h>
+14 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFCredential.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFCredential : NSObject 22 + #import <SecurityFoundation/_SFServiceIdentifier.h> 23 + 24 + #define SFCredential _SFCredential 25 + 26 + @interface SFCredential : NSObject 27 + 28 + @property (retain, nonatomic) SFServiceIdentifier* primaryServiceIdentifier; 29 + @property (retain, nonatomic) NSArray<SFServiceIdentifier*>* supplementaryServiceIdentifiers; 30 + @property (copy, nonatomic) NSString* localizedLabel; 31 + @property (copy, nonatomic) NSString* localizedDescription; 32 + @property (copy, nonatomic) NSDictionary* customAttributes; 33 + @property (copy, nonatomic) NSDate* creationDate; 34 + @property (copy, nonatomic) NSDate* modificationDate; 35 + @property (copy, nonatomic) NSString* persistentIdentifier; 23 36 24 37 @end
+2
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFCredentialStore.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 + #define SFCredentialStore _SFCredentialStore 23 + 22 24 @interface _SFCredentialStore : NSObject 23 25 24 26 @end
+12 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFECKeyPair.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFECKeyPair : NSObject 22 + #import <SecurityFoundation/_SFECKeySpecifier.h> 23 + #import <SecurityFoundation/_SFECPublicKey.h> 24 + #import <SecurityFoundation/_SFKeyPair.h> 25 + 26 + #define SFECKeyPair _SFECKeyPair 27 + 28 + @interface SFECKeyPair : SFKeyPair 29 + 30 + - (instancetype)initWithData:(NSData*)data specifier:(SFECKeySpecifier*)keySpecifier error:(NSError**)error; 31 + - (instancetype)initRandomKeyPairWithSpecifier:(SFECKeySpecifier*)specifier; 32 + 33 + @property (readonly, copy, nonatomic) SFECPublicKey* publicKey; 23 34 24 35 @end
+11 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFECKeySpecifier.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFECKeySpecifier : NSObject 22 + #import <SecurityFoundation/_SFKeySpecifier.h> 23 + 24 + typedef NS_ENUM(NSInteger, SFEllipticCurve) { 25 + SFEllipticCurveNistp384, 26 + }; 27 + 28 + @interface _SFECKeySpecifier : _SFKeySpecifier 29 + 30 + - (instancetype)initWithCurve:(SFEllipticCurve)curve; 23 31 24 32 @end 33 + 34 + #define SFECKeySpecifier _SFECKeySpecifier
+5 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFECPublicKey.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFECPublicKey : NSObject 22 + #import <SecurityFoundation/_SFPublicKey.h> 23 + 24 + @interface _SFECPublicKey : SFPublicKey 23 25 24 26 @end 27 + 28 + #define SFECPublicKey _SFECPublicKey
+12 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFEC_X962SigningOperation.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFEC_X962SigningOperation : NSObject 22 + #import <SecurityFoundation/SFSigningOperation.h> 23 + #import <SecurityFoundation/_SFECKeySpecifier.h> 24 + #import <SecurityFoundation/_SFSignedData.h> 25 + #import <SecurityFoundation/_SFECKeyPair.h> 26 + 27 + #define SFEC_X962SigningOperation _SFEC_X962SigningOperation 28 + 29 + @interface SFEC_X962SigningOperation : NSObject <SFSigningOperation> 30 + 31 + - (instancetype)initWithKeySpecifier:(SFECKeySpecifier*)keySpecifier; 32 + 33 + - (SFSignedData*)sign:(NSData*)data withKey:(SFECKeyPair*)key error:(NSError**)error; 23 34 24 35 @end
+5 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFEncryptionOperation.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @protocol _SFEncryptionOperation 22 + @protocol _SFEncryptionOperation <NSObject> 23 23 24 24 @end 25 + 26 + #define SFEncryptionOperation _SFEncryptionOperation 27 + 28 + #import <SecurityFoundation/_SFAuthenticatedEncryptionOperation.h>
+4
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFKey.h
··· 21 21 22 22 @interface _SFKey : NSObject 23 23 24 + @property (readonly, nonatomic) NSData* keyData; 25 + 24 26 @end 27 + 28 + #define SFKey _SFKey
+7 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFKeyPair.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFKeyPair : NSObject 22 + #import <SecurityFoundation/_SFKey.h> 23 + 24 + #define SFKeyPair _SFKeyPair 25 + 26 + @interface SFKeyPair : SFKey 23 27 24 28 @end 29 + 30 + #import <SecurityFoundation/_SFECKeyPair.h>
+3 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFKeySpecifier.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFKeySpecifier : NSObject 22 + #define SFKeySpecifier _SFKeySpecifier 23 + 24 + @interface SFKeySpecifier : NSObject 23 25 24 26 @end
+9 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFPasswordCredential.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFPasswordCredential : NSObject 22 + #import <SecurityFoundation/_SFServiceIdentifier.h> 23 + #import <SecurityFoundation/_SFCredential.h> 24 + 25 + #define SFPasswordCredential _SFPasswordCredential 26 + 27 + @interface SFPasswordCredential : SFCredential 28 + 29 + @property (copy, nonatomic) NSString* username; 30 + @property (copy, nonatomic) NSString* password; 23 31 24 32 @end
+5 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFPublicKey.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFPublicKey : NSObject 22 + #import <SecurityFoundation/_SFKey.h> 23 + 24 + @interface _SFPublicKey : _SFKey 23 25 24 26 @end 27 + 28 + #define SFPublicKey _SFPublicKey
+6 -1
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFServiceIdentifier.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - @interface _SFServiceIdentifier : NSObject 22 + #define SFServiceIdentifier _SFServiceIdentifier 23 + 24 + @interface SFServiceIdentifier : NSObject 25 + 26 + @property (readonly, copy, nonatomic) NSString* lookupKey; 27 + @property (readonly, copy, nonatomic) NSString* serviceID; 23 28 24 29 @end
+2
src/frameworks/SecurityFoundation/include/SecurityFoundation/_SFSignedData.h
··· 22 22 @interface _SFSignedData : NSObject 23 23 24 24 @end 25 + 26 + #define SFSignedData _SFSignedData
+3
src/frameworks/SecurityFoundation/src/SFKeychain.m
··· 1 + #import <SecurityFoundation/SFKeychain.h> 2 + 3 + NSString* const SFKeychainErrorDomain = @"SFKeychainErrorDomain";