Skip to content

Commit

Permalink
New things
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Jan 18, 2024
1 parent ae671e2 commit 06cf7e6
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CommonCrypto/CommonCrypto.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "Types.h"

int CCDigest(CCDigestAlgorithm alg, const uint8_t *data, size_t len, uint8_t *out);

int CC_MD4_Init(CC_MD4_CTX *c);
int CC_MD4_Update(CC_MD4_CTX *c, const void *data, CC_LONG len);
int CC_MD4_Final(unsigned char *md, CC_MD4_CTX *c);
Expand Down
Binary file modified IDA.til
Binary file not shown.
Binary file modified IDA32.til
Binary file not shown.
1 change: 1 addition & 0 deletions IOKit/IOKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ IOReturn IOUSBDeviceControllerSetDescription(IOUSBDeviceControllerRef device, IO
IOReturn IOUSBDeviceControllerSendCommand(IOUSBDeviceControllerRef device, CFStringRef command, CFTypeRef param);
IOReturn IOPSGetPercentRemaining(int *percent, bool *isCharging, bool *isFullyCharged);
IOReturn IOPSRequestBatteryUpdate(int type);
IOReturn IOPMRequestSysWake(CFDictionaryRef request);
IOReturn IOPMGetLastWakeTime(CFAbsoluteTime *whenWoke, CFTimeInterval *adjustedForPhysicalWake);
IOReturn IOPMCopySleepPreventersList(int preventerType, CFArrayRef *outArray);
IOReturn IOPMCopySleepPreventersListWithID(int preventerType, CFArrayRef *outArray);
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 - 2023 PoomSmart
Copyright (c) 2019 - 2024 PoomSmart

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions Security/Security.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ CFAbsoluteTime SecTrustGetVerifyTime(SecTrustRef trust);
CFArrayRef CFArrayCreateForCFTypes(CFAllocatorRef allocator, ...);

CFArrayRef SecCertificateCopyCommonNames(SecCertificateRef certificate);
CFArrayRef SecCertificateCopyDNSNames(SecCertificateRef certificate);
CFArrayRef SecCertificateCopyIPAddresses(SecCertificateRef certificate);
CFArrayRef SecTrustCopyCertificateChain(SecTrustRef trust);
CFArrayRef SecTrustCopyProperties(SecTrustRef trust);

CFDataRef SecCertificateCopyData(SecCertificateRef certificate);
Expand Down
2 changes: 2 additions & 0 deletions SystemConfiguration/SystemConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ CFDictionaryRef CNCopyCurrentNetworkInfo(CFStringRef interfaceName);

CFArrayRef CNCopySupportedInterfaces(void);

SCNetworkReachabilityRef SCNetworkReachabilityCreateWithOptions(CFAllocatorRef allocator, CFDictionaryRef options);

void SCDynamicStoreSetDisconnectCallBack(SCDynamicStoreRef store, SCDynamicStoreDisconnectCallBack callback);
1 change: 1 addition & 0 deletions SystemConfiguration/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define SYSTEMCONFIGURATION_H_

typedef struct __SCDynamicStore *SCDynamicStoreRef;
typedef struct __SCNetworkReachability *SCNetworkReachabilityRef;

typedef void (*SCDynamicStoreDisconnectCallBack)(SCDynamicStoreRef store);

Expand Down
1 change: 1 addition & 0 deletions dyld/dyld.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ uint32_t dyld_get_program_min_os_version(void);

intptr_t _dyld_get_image_slide(const struct mach_header *mh);

bool dyld_program_minos_at_least(dyld_build_version_t version);
bool dyld_program_sdk_at_least(dyld_build_version_t version);
bool dyld_has_inserted_or_interposing_libraries(void);
bool dyld_is_simulator_platform(dyld_platform_t platform);
Expand Down
2 changes: 2 additions & 0 deletions os/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#define __OS_WORKGROUP_JOIN_TOKEN_SIZE__ 28
#endif

typedef struct _os_object_s *_os_object_t;

typedef struct os_log_s *os_log_t;
typedef struct os_activity_s *os_activity_t;
typedef struct os_transaction_s *os_transaction_t;
Expand Down
2 changes: 2 additions & 0 deletions os/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ os_transaction_t os_transaction_create(const char *description);
os_workgroup_t os_workgroup_create_with_port(const char *name, mach_port_t mach_port);
os_workgroup_t os_workgroup_create_with_workgroup(const char *name, os_workgroup_t wg);

_os_object_t _os_object_alloc(const void *cls, size_t size);

size_t os_proc_available_memory(void);
size_t _os_log_pack_size(size_t os_log_format_buffer_size);

Expand Down

0 comments on commit 06cf7e6

Please sign in to comment.