x509parse_crtpath() is now reentrant and uses more portable stat()

Moved from readdir() to readdir_r() and use stat instead of the less
portable d_type from struct dirent.
diff --git a/ChangeLog b/ChangeLog
index 5fd28f3..a4e24d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,7 @@
    * ssl_parse_certificate() now calls x509parse_crt_der() directly
      instead of the x509parse_crt() wrapper that can also parse PEM
 	 certificates
+   * x509parse_crtpath() is now reentrant and uses more portable stat()
 
 = Version 1.2.7 released 2013-04-13
 Features