Skip to content

Commit

Permalink
Clarify doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Feb 29, 2024
1 parent 6568311 commit 34f7a30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/openssl/x509.h
Original file line number Diff line number Diff line change
Expand Up @@ -2816,8 +2816,9 @@ OPENSSL_EXPORT int X509_OBJECT_set1_X509_CRL(X509_OBJECT *a, X509_CRL *obj);
OPENSSL_EXPORT X509_STORE *X509_STORE_new(void);
// X509_STORE_lock takes a write lock on |v|. return 1 on success, 0 on failure.
//
// Avoid using the store while it is locked; many functions take a lock
// internally, so operating on the store may cause a deadlock.
// Avoid operations on the X509_STORE or a X509_STORE_CTX containing it while
// it is locked; many |X509_STORE_*| functions take this lock internally which
// will cause a deadlock when called on a locked store.
OPENSSL_EXPORT int X509_STORE_lock(X509_STORE *v);
// X509_STORE_lock releases a lock on |v|. return 1 on success, 0 on failure
OPENSSL_EXPORT int X509_STORE_unlock(X509_STORE *v);
Expand Down

0 comments on commit 34f7a30

Please sign in to comment.