Remove err(), remove extra empty comment, fix _iter function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20913 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -83,17 +83,17 @@ keychain_iter_start(hx509_context context,
|
|||||||
kSecCertificateItemClass,
|
kSecCertificateItemClass,
|
||||||
NULL,
|
NULL,
|
||||||
&iter->searchRef);
|
&iter->searchRef);
|
||||||
if (ret)
|
if (ret) {
|
||||||
errx(1, "SecKeychainSearchCreateFromAttributes: %d\n", ret);
|
free(iter);
|
||||||
|
hx509_set_error_string(context, 0, ret,
|
||||||
|
"Failed to start search for attributes");
|
||||||
|
return ENOMEM;
|
||||||
|
}
|
||||||
|
|
||||||
*cursor = iter;
|
*cursor = iter;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -114,7 +114,7 @@ keychain_iter(hx509_context context,
|
|||||||
|
|
||||||
ret = SecKeychainSearchCopyNext(iter->searchRef, &itemRef);
|
ret = SecKeychainSearchCopyNext(iter->searchRef, &itemRef);
|
||||||
if (ret == errSecItemNotFound)
|
if (ret == errSecItemNotFound)
|
||||||
return ENOENT;
|
return 0;
|
||||||
else if (ret != 0)
|
else if (ret != 0)
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user