Skip to content

Commit

Permalink
x509_trust.c: add documenting comment for obj_trust()
Browse files Browse the repository at this point in the history
  • Loading branch information
DDvO committed Dec 9, 2024
1 parent 28bd4ae commit 1d52d09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crypto/x509/x509_trust.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ static int trust_compat(X509_TRUST *trust, X509 *x, int flags)
return X509_TRUST_UNTRUSTED;
}

/*
* |id| is the NID of the extended key usage (EKU) to check for certificate |x|.
* Return X509_TRUST_REJECTED if negative trust attributes of |x| prevents it.
* Return X509_TRUST_TRUSTED if positive trust attributes of |x| accepts it.
* If |flags| includes X509_TRUST_OK_ANY_EKU then anyEKU serves as wildcard.
* Return X509_TRUST_UNTRUSTED if no clear decision has been reached here.
*/
static int obj_trust(int id, X509 *x, int flags)
{
X509_CERT_AUX *ax = x->aux;
Expand Down

0 comments on commit 1d52d09

Please sign in to comment.