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/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: