pass back an heim_error from hx509_cert_init
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user