Skip to content

Commit

Permalink
Remove extra newline from CMP mock server error and add TODO on using…
Browse files Browse the repository at this point in the history
… request template

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #11998)
  • Loading branch information
DDvO committed Jun 13, 2020
1 parent c4a9e3e commit 5e7be6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2996,7 +2996,7 @@ int cmp_main(int argc, char **argv)
if (req != NULL) {
if (strcmp(path, "") != 0 && strcmp(path, "pkix/") != 0) {
(void)http_server_send_status(cbio, 404, "Not Found");
CMP_err1("Expecting empty path or 'pkix/' but got '%s'\n",
CMP_err1("Expecting empty path or 'pkix/' but got '%s'",
path);
OPENSSL_free(path);
OSSL_CMP_MSG_free(req);
Expand Down
1 change: 1 addition & 0 deletions apps/cmp_mock_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ static OSSL_CMP_PKISI *process_cert_request(OSSL_CMP_SRV_CTX *srv_ctx,
}
if (ctx->certOut != NULL
&& (*certOut = X509_dup(ctx->certOut)) == NULL)
/* TODO better return a cert produced from data in request template */
goto err;
if (ctx->chainOut != NULL
&& (*chainOut = X509_chain_up_ref(ctx->chainOut)) == NULL)
Expand Down

0 comments on commit 5e7be6e

Please sign in to comment.