Skip to content

Commit

Permalink
document verify_cert() parameters and return value
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Jun 13, 2016
1 parent 72a0f28 commit 09697f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/rpki/sqhl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,23 @@ verify_cert_cb(
/**
* @brief
* Verify certificate
*
* @param[in] conp
* Database connection. This MUST NOT be NULL.
* @param[in] cert
* Certificate to verify. This MUST NOT be NULL.
* @param[in] isTrusted
* True if @p cert is a trust anchor, false otherwise.
* @param[in] aki
* Value of the AKI field in @p cert. This MUST NOT be NULL if @p
* isTrusted is false. Ignored if @p isTrusted is true.
* @param[in] issuer
* Value of the issuer field in @p cert. This MUST NOT be NULL if
* @p isTrusted is false. Ignored if @p isTrusted is true.
* @return
* 0 if the certificate is valid and no error was encountered,
* ERR_SCM_NOTVALID if the certificate is not valid and no error
* was encountered, other error code if an error was encountered.
*/
static err_code
verify_cert(
Expand Down

0 comments on commit 09697f0

Please sign in to comment.