Skip to content

Commit

Permalink
Merge pull request certnanny#11 from rad1us/develop
Browse files Browse the repository at this point in the history
included transaction id to always be printed on stdout during enrollment...
  • Loading branch information
rad1us committed Oct 9, 2013
2 parents 2867bc7 + c92e55e commit f57e18e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions net.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ send_msg(struct http_reply *http,char *msg,char *host,int port,int operation) {
return (0);

mime_err:
if (v_flag)
fprintf(stderr, "%s: wrong (or missing) MIME content type\n", pname);
return (1);

Expand Down
2 changes: 1 addition & 1 deletion pkcs7.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ int pkcs7_unwrap(struct scep *s) {
fprintf(stderr, "%s: cannot find transId\n", pname);
exit (SCEP_PKISTATUS_P7);
}
if (v_flag)
// if (v_flag)
printf("%s: reply transaction id: %s\n", pname, p);
if (strncmp(s->transaction_id, p, strlen(p))) {
fprintf(stderr, "%s: transaction id mismatch\n", pname);
Expand Down
2 changes: 2 additions & 0 deletions sscep.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,12 @@ main(int argc, char **argv) {
reply.payload = NULL;
if ((c = send_msg (&reply, http_string, host_name,
host_port, operation_flag)) == 1) {
if(v_flag){
fprintf(stderr, "%s: error while sending "
"message\n", pname);
fprintf(stderr, "%s: getnextCA might be not available"
"\n", pname);
}
exit (SCEP_PKISTATUS_NET);
}
if (reply.payload == NULL) {
Expand Down

0 comments on commit f57e18e

Please sign in to comment.