Skip to content

Export LoadCACert from the encryption package - #272

Closed
liam-lowe wants to merge 1 commit into
mainfrom
liam-lowe/encryption-loadcacert
Closed

Export LoadCACert from the encryption package#272
liam-lowe wants to merge 1 commit into
mainfrom
liam-lowe/encryption-loadcacert

Conversation

@liam-lowe

Copy link
Copy Markdown
Contributor

Exports LoadCACert, a thin wrapper over the existing unexported fetchCACert, for callers that build their own tls.Config rather than going through GetClientTLSConfig or GetServerTLSConfig.

fetchCACert already handles both a file path and an https URL. Nothing about its behaviour changes; this only widens its visibility.

Testing

  • make lint: 0 issues.
  • go build ./... and go test ./...: pass.
  • No test added. The exported function is a one-line delegation. fetchCACert is already covered by encryption/certificate_test.go.

@liam-lowe
liam-lowe requested a review from a team as a code owner September 2, 2026 22:41
@liam-lowe
liam-lowe marked this pull request as draft September 2, 2026 22:43
@liam-lowe liam-lowe closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant