File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,7 @@ const char *uninstallCert() {
7272 OSStatus err = noErr;
7373 CFTypeRef itemList;
7474 err = SecItemCopyMatching((CFDictionaryRef)dict, &itemList);
75- if (err == noErr) {
76- err = SecItemDelete((CFDictionaryRef)dict);
77- if (err != noErr) {
78- NSString *errString = [@"Could not delete the certificates. Error: " stringByAppendingFormat:@"%d", err];
79- NSLog(@"%@", errString);
80- return [errString cStringUsingEncoding:[NSString defaultCStringEncoding]];;
81- }
82- } else if (err != errSecItemNotFound){
75+ if (err != errSecItemNotFound){
8376 NSString *errString = [@"Error: " stringByAppendingFormat:@"%d", err];
8477 NSLog(@"%@", errString);
8578 return [errString cStringUsingEncoding:[NSString defaultCStringEncoding]];;
You can’t perform that action at this time.
0 commit comments