ObjOpenSSL  Diff

Differences From Artifact [d7426f238d]:

To Artifact [f5a1847ad4]:


460
461
462
463
464
465
466
467
468
469








470
471
472
473
474
475
476
460
461
462
463
464
465
466



467
468
469
470
471
472
473
474
475
476
477
478
479
480
481







-
-
-
+
+
+
+
+
+
+
+







	char tmp[1024];
	OBJ_obj2txt(tmp, sizeof(tmp), OBJ_txt2obj([_string UTF8String], 1), 0);
	return [OFString stringWithUTF8String: tmp];
}

- (BOOL)isEqual: (id)object
{
	if (([object isKindOfClass: [OFString class]]) ||
	    ([object isKindOfClass: [X509OID class]]))
		return [object isEqual: _string];
	if ([object isKindOfClass: [X509OID class]]) {
		X509OID *OID = object;

		return [OID->_string isEqual: _string];
	}

	if ([object isKindOfClass: [OFString class]])
		return [_string isEqual: object];

	return NO;
}

- (uint32_t)hash
{
	return [_string hash];