symmetryinvestments / imap-d

D library for IMAP (JMAP is a work-in-progress but the basics work)
14 stars 10 forks source link

Search known paths for the CA certificate file on Linux. #77

Closed otrho closed 3 years ago

otrho commented 3 years ago

Instead of assuming the path (under /etc/ssl) we check a list of places it might be, since this differs between distros. Taken from a Go example.

otrho commented 3 years ago

@Laeeth can you verify this works for you out of the box now on Ubuntu?

codecov[bot] commented 3 years ago

Codecov Report

Merging #77 (6072e02) into master (af5d132) will decrease coverage by 0.06%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
- Coverage   15.87%   15.81%   -0.07%     
==========================================
  Files          10       10              
  Lines        1184     1189       +5     
==========================================
  Hits          188      188              
- Misses        996     1001       +5     
Impacted Files Coverage Δ
source/imap/session.d 0.00% <ø> (ø)
source/imap/socket.d 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update af5d132...6072e02. Read the comment docs.