Add a few more libaks stubs

This commit is contained in:
Ariel Abreu 2020-07-23 15:40:51 -04:00
parent eff21ec689
commit 02dff22f2d
2 changed files with 10 additions and 0 deletions

View File

@ -77,6 +77,8 @@ enum {
kern_return_t aks_create_bag(uint8_t* secret, int secret_size, int bag_type, keybag_handle_t* handle);
kern_return_t aks_save_bag(keybag_handle_t handle, void** bytes, size_t* size);
kern_return_t aks_unload_bag(keybag_handle_t handle);
kern_return_t aks_unlock_bag(keybag_handle_t handle, const void* passcode, int length);
kern_return_t aks_load_bag(const void* data, int length, keybag_handle_t* handle);
#ifdef __cplusplus
}

View File

@ -63,3 +63,11 @@ kern_return_t aks_save_bag(keybag_handle_t handle, void** bytes, size_t* size) {
kern_return_t aks_unload_bag(keybag_handle_t handle) {
return KERN_FAILURE;
};
kern_return_t aks_unlock_bag(keybag_handle_t handle, const void* passcode, int length) {
return KERN_FAILURE;
};
kern_return_t aks_load_bag(const void* data, int length, keybag_handle_t* handle) {
return KERN_FAILURE;
};