5 #include "keychain/SecureObjectSync/SOSAccountPriv.h"
6 #include "SOSAccountLog.h"
9 #include <AssertMacros.h>
10 #include "SOSAccountPriv.h"
12 #include <utilities/SecCFWrappers.h>
13 #import <utilities/SecNSAdditions.h>
14 #include <utilities/SecCoreCrypto.h>
15 #include <utilities/SecBuffer.h>
16 #include "keychain/SecureObjectSync/SOSPeerInfoDER.h"
18 #include "keychain/SecureObjectSync/SOSTransport.h"
19 #include "keychain/SecureObjectSync/SOSPeerInfoCollections.h"
20 #include <os/state_private.h>
22 // Keep these for later
23 void SOSAccountLog(SOSAccount* account) {
24 NSString* hex = [[account encodedData: nil] asHexString];
26 secdebug("accountLog", "Full contents: %@", hex);
29 SOSAccount* SOSAccountCreateFromStringRef(CFStringRef hexString) {
30 CFDataRef accountDER = CFDataCreateFromHexString(kCFAllocatorDefault, hexString);
31 if(!accountDER) return NULL;
32 SOSAccount* account = [SOSAccount accountFromData:(__bridge NSData*) accountDER
35 CFReleaseNull(accountDER);