ObjOpenSSL  Check-in [2e400eadc7]

Overview
Comment:Fix -[X509OID isEqual:].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2e400eadc764307ab33cda6ee0468abe86f53297dd67c033841ac80242c096d8
User & Date: js on 2013-02-12 18:35:28
Other Links: manifest | tags
Context
2013-02-13
23:15
Don't cache the description of exceptions. check-in: bc41772796 user: js tags: trunk
2013-02-12
18:35
Fix -[X509OID isEqual:]. check-in: 2e400eadc7 user: js tags: trunk
17:49
Prefix all ivars with an underscore. check-in: eca3b894f8 user: js tags: trunk
Changes

Modified src/X509Certificate.m from [d7426f238d] to [f5a1847ad4].

460
461
462
463
464
465
466
467
468


469




470
471
472
473
474
475
476
	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];





	return NO;
}

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







<
|
>
>
|
>
>
>
>







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: [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];