Adjust to recent ObjFW changes.
This commit is contained in:
parent
34b09ca864
commit
02478205c7
1 changed files with 4 additions and 2 deletions
|
@ -37,6 +37,8 @@
|
||||||
#import <ObjFW/OFMutableDictionary.h>
|
#import <ObjFW/OFMutableDictionary.h>
|
||||||
#import <ObjFW/OFString.h>
|
#import <ObjFW/OFString.h>
|
||||||
|
|
||||||
|
#import <ObjFW/macros.h>
|
||||||
|
|
||||||
@implementation X509Certificate
|
@implementation X509Certificate
|
||||||
- initWithFile: (OFString*)file
|
- initWithFile: (OFString*)file
|
||||||
{
|
{
|
||||||
|
@ -345,8 +347,8 @@
|
||||||
asserted = [asserted substringWithRange:
|
asserted = [asserted substringWithRange:
|
||||||
of_range(2, [asserted length] - 2)];
|
of_range(2, [asserted length] - 2)];
|
||||||
|
|
||||||
firstDot = [domain indexOfFirstOccurrenceOfString: @"."];
|
firstDot = [domain rangeOfString: @"."].location;
|
||||||
if (firstDot == OF_INVALID_INDEX)
|
if (firstDot == OF_NOT_FOUND)
|
||||||
return NO;
|
return NO;
|
||||||
|
|
||||||
domain = [domain substringWithRange:
|
domain = [domain substringWithRange:
|
||||||
|
|
Reference in a new issue