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() {
72
72
OSStatus err = noErr;
73
73
CFTypeRef itemList;
74
74
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){
83
76
NSString *errString = [@"Error: " stringByAppendingFormat:@"%d", err];
84
77
NSLog(@"%@", errString);
85
78
return [errString cStringUsingEncoding:[NSString defaultCStringEncoding]];;
You can’t perform that action at this time.
0 commit comments