Notice
To include AquaticPrime Carbon in your application, add the files AquaticPrime.c and AquaticPrime.h from the "Carbon" folder to your project and make sure your project links against either CarbonLib or the CoreFoundation framework. AquaticPrime Carbon is BSD licensed, so you can use it in any commercial or non-commercial product free of obligation.
AquaticPrime Carbon Functions
Boolean APSetKey( CFStringRef key )
Must be called before using any of the other functions. The key should be your public key (get it from the AquaticPrime Developer application) as a CFString.
CFDictionaryRef APCreateDictionaryForLicenseData( CFDataRef licenseData )
This function will take license data in CFData format and then either return the license dictionary on success or null if the license is invalid.
CFDictionaryRef APCreateDictionaryForLicenseFile( CFURLRef licensePath )
This function will open the license specified at the CFURL given and then either return the license dictionary on success or null if the license is invalid.
Boolean APVerifyLicenseData( CFDataRef licenseData )
This is a convenience function that will call DictionaryForLicenseData with the CFData of the license file and then return either true or false depending on if the license is valid.
Boolean APVerifyLicenseFile( CFURLRef licensePath )
This is a convenience function that will call DictionaryForLicenseFile with the CFURL of the license file and then return either true or false depending on if the license is valid.
CFStringRef APHash( )
This function returns the hash of the last license file processed.
void APBlacklistAdd( CFStringRef blacklistEntry )
This function adds a single hash to the blacklist.
void APSetBlacklist( CFArrayRef hashArray )
This function adds an array of hashes to the blacklist.
Must be called before using any of the other functions. The key should be your public key (get it from the AquaticPrime Developer application) as a CFString.
CFDictionaryRef APCreateDictionaryForLicenseData( CFDataRef licenseData )
This function will take license data in CFData format and then either return the license dictionary on success or null if the license is invalid.
CFDictionaryRef APCreateDictionaryForLicenseFile( CFURLRef licensePath )
This function will open the license specified at the CFURL given and then either return the license dictionary on success or null if the license is invalid.
Boolean APVerifyLicenseData( CFDataRef licenseData )
This is a convenience function that will call DictionaryForLicenseData with the CFData of the license file and then return either true or false depending on if the license is valid.
Boolean APVerifyLicenseFile( CFURLRef licensePath )
This is a convenience function that will call DictionaryForLicenseFile with the CFURL of the license file and then return either true or false depending on if the license is valid.
CFStringRef APHash( )
This function returns the hash of the last license file processed.
void APBlacklistAdd( CFStringRef blacklistEntry )
This function adds a single hash to the blacklist.
void APSetBlacklist( CFArrayRef hashArray )
This function adds an array of hashes to the blacklist.
