Pass up error code from PEM format parser.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25220 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -340,8 +340,12 @@ pem_func(hx509_context context, const char *type,
|
|||||||
|
|
||||||
ret = (*formats[j].func)(context, NULL, pem_ctx->c,
|
ret = (*formats[j].func)(context, NULL, pem_ctx->c,
|
||||||
header, data, len, ai);
|
header, data, len, ai);
|
||||||
if (ret == 0)
|
if (ret) {
|
||||||
break;
|
hx509_set_error_string(context, HX509_ERROR_APPEND, ret,
|
||||||
|
"Failed parseing PEM format %s", type);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (j == sizeof(formats)/sizeof(formats[0])) {
|
if (j == sizeof(formats)/sizeof(formats[0])) {
|
||||||
|
Reference in New Issue
Block a user