From e3339ce2961d5abf2697b8121eae0c3173fc1383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 28 Nov 2013 17:16:41 +0100 Subject: [PATCH] Document x509_crt_parse_path() threading behaviour --- include/polarssl/x509_crt.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/polarssl/x509_crt.h b/include/polarssl/x509_crt.h index a5ab1789a..4e7bbb7b3 100644 --- a/include/polarssl/x509_crt.h +++ b/include/polarssl/x509_crt.h @@ -172,6 +172,11 @@ int x509_crt_parse_file( x509_crt *chain, const char *path ); * of failed certificates it encountered. If none complete * correctly, the first error is returned. * + * \warning This function is NOT thread-safe unless + * POLARSSL_THREADING_PTHREADS is defined. If you're using an + * alternative threading implementation, you should either use + * this function only in the main thread, or mutex it. + * * \param chain points to the start of the chain * \param path directory / folder to read the certificate files from *