int updateKeyLabel()

in macos/midtier.c [217:232]


int updateKeyLabel(
    const char* label,
    const char* tag,
    unsigned char* hash,
    const char* newLabel,
    char** error) {
  OSStatus status = UpdateKeyLabel(label, tag, hash, newLabel);
  if (status != errSecSuccess) {
    CFStringRef errStr = SecCopyErrorMessageString(status, NULL);
    *error = CFStringToCString(errStr);
    CFRelease((CFTypeRef)errStr);
    return 0;
  }

  return 1;
}