Skip to content

Commit

Permalink
Remove SecItemDelete for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoPologruto committed Apr 10, 2024
1 parent 6093713 commit c14b18c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions certificates/install_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,7 @@ const char *uninstallCert() {
OSStatus err = noErr;
CFTypeRef itemList;
err = SecItemCopyMatching((CFDictionaryRef)dict, &itemList);
if (err == noErr) {
err = SecItemDelete((CFDictionaryRef)dict);
if (err != noErr) {
NSString *errString = [@"Could not delete the certificates. Error: " stringByAppendingFormat:@"%d", err];
NSLog(@"%@", errString);
return [errString cStringUsingEncoding:[NSString defaultCStringEncoding]];;
}
} else if (err != errSecItemNotFound){
if (err != errSecItemNotFound){
NSString *errString = [@"Error: " stringByAppendingFormat:@"%d", err];
NSLog(@"%@", errString);
return [errString cStringUsingEncoding:[NSString defaultCStringEncoding]];;
Expand Down

0 comments on commit c14b18c

Please sign in to comment.