mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Add stub methods for secure unarchiving
This commit is contained in:
parent
b1e43eb5dd
commit
f3555406af
2 changed files with 90 additions and 0 deletions
|
@ -354,6 +354,61 @@ static NSMapTable *globalClassMap = 0;
|
|||
return o;
|
||||
}
|
||||
|
||||
+ (id) unarchivedObjectOfClass: (Class)cls
|
||||
fromData: (NSData*)data
|
||||
error: (NSError**)error
|
||||
{
|
||||
return [self unarchivedObjectOfClasses: [NSSet setWithObject:cls]
|
||||
fromData: data
|
||||
error: error];
|
||||
}
|
||||
|
||||
+ (id) unarchivedObjectOfClasses: (GS_GENERIC_CLASS(NSSet,Class)*)classes
|
||||
fromData: (NSData*)data
|
||||
error: (NSError**)error
|
||||
{
|
||||
/* FIXME: implement proper secure coding support */
|
||||
return [self unarchiveObjectWithData: data];
|
||||
}
|
||||
|
||||
+ (NSArray*) unarchivedArrayOfObjectsOfClass: (Class)cls
|
||||
fromData: (NSData*)data
|
||||
error: (NSError**)error
|
||||
{
|
||||
return [self unarchivedArrayOfObjectsOfClasses: [NSSet setWithObject:cls]
|
||||
fromData: data
|
||||
error: error];
|
||||
}
|
||||
|
||||
+ (NSArray*) unarchivedArrayOfObjectsOfClasses: (GS_GENERIC_CLASS(NSSet,Class)*)classes
|
||||
fromData: (NSData*)data
|
||||
error: (NSError**)error
|
||||
{
|
||||
/* FIXME: implement proper secure coding support */
|
||||
return [self unarchiveObjectWithData: data];
|
||||
}
|
||||
|
||||
+ (NSDictionary*) unarchivedDictionaryWithKeysOfClass: (Class)keyCls
|
||||
objectsOfClass: (Class)valueCls
|
||||
fromData: (NSData*)data
|
||||
error: (NSError**)error
|
||||
{
|
||||
return [self unarchivedDictionaryWithKeysOfClasses: [NSSet setWithObject:keyCls]
|
||||
objectsOfClasses: [NSSet setWithObject:valueCls]
|
||||
fromData: data
|
||||
error: error];
|
||||
}
|
||||
|
||||
+ (NSDictionary*) unarchivedDictionaryWithKeysOfClasses: (GS_GENERIC_CLASS(NSSet,Class)*)keyClasses
|
||||
objectsOfClasses: (GS_GENERIC_CLASS(NSSet,Class)*)valueClasses
|
||||
fromData: (NSData*)data
|
||||
error: (NSError**)error
|
||||
{
|
||||
/* FIXME: implement proper secure coding support */
|
||||
return [self unarchiveObjectWithData: data];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) allowsKeyedCoding
|
||||
{
|
||||
return YES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue