pass back an heim_error from hx509_cert_init

This commit is contained in:
Love Hornquist Astrand
2012-10-07 06:33:13 -07:00
parent 216bfa564d
commit 029de6cfa4
16 changed files with 135 additions and 92 deletions

View File

@@ -319,14 +319,14 @@ test_compare(hx509_context context)
/* check transative properties of name compare function */
ret = hx509_cert_init_data(context, certdata1, sizeof(certdata1) - 1, &c1);
if (ret) return 1;
c1 = hx509_cert_init_data(context, certdata1, sizeof(certdata1) - 1, NULL);
if (c1 == NULL) return 1;
ret = hx509_cert_init_data(context, certdata2, sizeof(certdata2) - 1, &c2);
if (ret) return 1;
ret = hx509_cert_init_data(context, certdata3, sizeof(certdata3) - 1, &c3);
if (ret) return 1;
c2 = hx509_cert_init_data(context, certdata2, sizeof(certdata2) - 1, NULL);
if (c2 == NULL) return 1;
c3 = hx509_cert_init_data(context, certdata3, sizeof(certdata3) - 1, NULL);
if (c3 == NULL) return 1;
ret = compare_subject(c1, c1, &l0);
if (ret) return 1;