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