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];
|
[super close];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (size_t)_readNBytes: (size_t)length
|
- (size_t)_readIntoBuffer: (void*)buffer
|
||||||
intoBuffer: (void*)buffer
|
length: (size_t)length
|
||||||
{
|
{
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
|
|
||||||
|
@ -279,8 +279,8 @@ ssl_locking_callback(int mode, int n, const char *file, int line)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_writeNBytes: (size_t)length
|
- (void)_writeBuffer: (const void*)buffer
|
||||||
fromBuffer: (const void*)buffer
|
length: (size_t)length
|
||||||
{
|
{
|
||||||
if (length > INT_MAX)
|
if (length > INT_MAX)
|
||||||
@throw [OFOutOfRangeException exceptionWithClass: isa];
|
@throw [OFOutOfRangeException exceptionWithClass: isa];
|
||||||
|
@ -361,8 +361,8 @@ ssl_locking_callback(int mode, int n, const char *file, int line)
|
||||||
}
|
}
|
||||||
|
|
||||||
data = [OFDataArray dataArray];
|
data = [OFDataArray dataArray];
|
||||||
[data addNItems: length
|
[data addItemsFromCArray: buffer
|
||||||
fromCArray: buffer];
|
count: length];
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -400,7 +400,7 @@
|
||||||
1)) > bufferLength) {
|
1)) > bufferLength) {
|
||||||
bufferLength = length;
|
bufferLength = length;
|
||||||
buffer = [self resizeMemory: buffer
|
buffer = [self resizeMemory: buffer
|
||||||
toSize: bufferLength];
|
size: bufferLength];
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = [[[X509OID alloc]
|
ret = [[[X509OID alloc]
|
||||||
|
|
Reference in a new issue