Adjust to latest ObjFW API changes.
This commit is contained in:
parent
935b6558f3
commit
edadc4878b
2 changed files with 7 additions and 7 deletions
|
@ -241,8 +241,8 @@ ssl_locking_callback(int mode, int n, const char *file, int line)
|
|||
[super close];
|
||||
}
|
||||
|
||||
- (size_t)_readNBytes: (size_t)length
|
||||
intoBuffer: (void*)buffer
|
||||
- (size_t)_readIntoBuffer: (void*)buffer
|
||||
length: (size_t)length
|
||||
{
|
||||
ssize_t ret;
|
||||
|
||||
|
@ -279,8 +279,8 @@ ssl_locking_callback(int mode, int n, const char *file, int line)
|
|||
return ret;
|
||||
}
|
||||
|
||||
- (void)_writeNBytes: (size_t)length
|
||||
fromBuffer: (const void*)buffer
|
||||
- (void)_writeBuffer: (const void*)buffer
|
||||
length: (size_t)length
|
||||
{
|
||||
if (length > INT_MAX)
|
||||
@throw [OFOutOfRangeException exceptionWithClass: isa];
|
||||
|
@ -361,8 +361,8 @@ ssl_locking_callback(int mode, int n, const char *file, int line)
|
|||
}
|
||||
|
||||
data = [OFDataArray dataArray];
|
||||
[data addNItems: length
|
||||
fromCArray: buffer];
|
||||
[data addItemsFromCArray: buffer
|
||||
count: length];
|
||||
|
||||
return data;
|
||||
}
|
||||
|
|
|
@ -400,7 +400,7 @@
|
|||
1)) > bufferLength) {
|
||||
bufferLength = length;
|
||||
buffer = [self resizeMemory: buffer
|
||||
toSize: bufferLength];
|
||||
size: bufferLength];
|
||||
}
|
||||
|
||||
ret = [[[X509OID alloc]
|
||||
|
|
Reference in a new issue