Re: [PATCH v2] CLEANUP: ssl: remove opendir call in ssl_sock_load_cert

2020-01-13 Thread William Lallemand
On Mon, Jan 13, 2020 at 05:52:49PM +0100, William Dauchy wrote: > Since commit 3180f7b55434 ("MINOR: ssl: load certificates in > alphabetical order"), `readdir` was replaced by `scandir`. We can indeed > replace it with a check on the previous `stat` call. > > This micro cleanup can be a good bene

[PATCH v2] CLEANUP: ssl: remove opendir call in ssl_sock_load_cert

2020-01-13 Thread William Dauchy
Since commit 3180f7b55434 ("MINOR: ssl: load certificates in alphabetical order"), `readdir` was replaced by `scandir`. We can indeed replace it with a check on the previous `stat` call. This micro cleanup can be a good benefit when you have hundreds of bind lines which open TLS certificates direc