Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error: avoid leaking pem::PemError into api
Having `From<pem::PemError>` defined on the public `Error` type means that the `pem` type leaks into rcgen's public API, complicating semver incompatible updates. This commit updates the sites that previously used this trait to directly map to the generic rcgen `Error::PemError` err. There's only two places that need that so a helper fn doesn't seem warranted. Additionally, the error variant is changed to hold a `String` with the `pem::PemError` error string instead of the type itself. This allows the `From` impl on `Error` to be removed, fixing the type leak.
- Loading branch information