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:
Love Hörnquist Åstrand
2007-06-05 03:57:52 +00:00
parent 7761ecce3f
commit 90318d31b3

View File

@@ -83,17 +83,17 @@ keychain_iter_start(hx509_context context,
kSecCertificateItemClass,
NULL,
&iter->searchRef);
if (ret)
errx(1, "SecKeychainSearchCreateFromAttributes: %d\n", ret);
if (ret) {
free(iter);
hx509_set_error_string(context, 0, ret,
"Failed to start search for attributes");
return ENOMEM;
}
*cursor = iter;
return 0;
}
/*
*
*/
/*
*
*/
@@ -114,7 +114,7 @@ keychain_iter(hx509_context context,
ret = SecKeychainSearchCopyNext(iter->searchRef, &itemRef);
if (ret == errSecItemNotFound)
return ENOENT;
return 0;
else if (ret != 0)
return EINVAL;