Skip to content

Commit

Permalink
fixup! APPS/load_key_certs_crls(): refactor to clean up the code a li…
Browse files Browse the repository at this point in the history
…ttle and add clarifying comments
  • Loading branch information
DDvO committed Nov 9, 2024
1 parent c1ee168 commit ce391fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/lib/apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ static const char *format2string(int format)
return NULL;
}

/* Set type expectation, but set to 0 if objects of several types expected. */
/* Set type expectation, but set to 0 if objects of multiple types expected. */
#define SET_EXPECT(val) \
(expect = expect < 0 ? (val) : (expect == (val) ? (val) : 0))
#define SET_EXPECT1(pvar, val) \
Expand All @@ -915,7 +915,7 @@ static const char *format2string(int format)
pcrl != NULL ? "CRL" : pcrls != NULL ? "CRLs" : NULL)
/*
* Load those types of credentials for which the result pointer is not NULL.
* Reads from stdio if 'uri' is NULL and 'maybe_stdin' is nonzero.
* Reads from stdin if 'uri' is NULL and 'maybe_stdin' is nonzero.
* 'format' parameter may be FORMAT_PEM, FORMAT_ASN1, or 0 for no hint.
* desc may contain more detail on the credential(s) to be loaded for error msg
* For non-NULL ppkey, pcert, and pcrl the first suitable value found is loaded.
Expand Down

0 comments on commit ce391fc

Please sign in to comment.