Skip to content

Commit

Permalink
Merge pull request nygard#41 from 0xced/sdk-10.9
Browse files Browse the repository at this point in the history
Use the encryption info for 64-bits goodies available in the 10.9 SDK
  • Loading branch information
nygard committed Mar 22, 2014
2 parents d19f77e + e978382 commit 3ef4b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Source/CDLCEncryptionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

#import "CDLoadCommand.h"

#ifndef LC_ENCRYPTION_INFO_64
#define LC_ENCRYPTION_INFO_64 0x2C
#endif

@interface CDLCEncryptionInfo : CDLoadCommand

@property (nonatomic, readonly) uint32_t cryptoff;
Expand Down
6 changes: 2 additions & 4 deletions Source/CDLCEncryptionInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

@implementation CDLCEncryptionInfo
{
// TODO: (2013-09-11) Use struct encryption_info_command_64 once it's available in the OS X SDK.
struct encryption_info_command _encryptionInfoCommand;
uint32_t _pad;
struct encryption_info_command_64 _encryptionInfoCommand;
}

- (id)initWithDataCursor:(CDMachOFileDataCursor *)cursor;
Expand All @@ -24,7 +22,7 @@ - (id)initWithDataCursor:(CDMachOFileDataCursor *)cursor;
_encryptionInfoCommand.cryptsize = [cursor readInt32];
_encryptionInfoCommand.cryptid = [cursor readInt32];
if (_encryptionInfoCommand.cmd == LC_ENCRYPTION_INFO_64) {
_pad = [cursor readInt32];
_encryptionInfoCommand.pad = [cursor readInt32];
}
}

Expand Down

0 comments on commit 3ef4b07

Please sign in to comment.