Adjust to recent ObjFW changes.

This commit is contained in:
Jonathan Schleifer 2012-10-27 20:23:30 +02:00
parent 34b09ca864
commit 02478205c7

View file

@ -37,6 +37,8 @@
#import <ObjFW/OFMutableDictionary.h>
#import <ObjFW/OFString.h>
#import <ObjFW/macros.h>
@implementation X509Certificate
- initWithFile: (OFString*)file
{
@ -345,8 +347,8 @@
asserted = [asserted substringWithRange:
of_range(2, [asserted length] - 2)];
firstDot = [domain indexOfFirstOccurrenceOfString: @"."];
if (firstDot == OF_INVALID_INDEX)
firstDot = [domain rangeOfString: @"."].location;
if (firstDot == OF_NOT_FOUND)
return NO;
domain = [domain substringWithRange: