zmap / zcrypto

Liberal Go TLS + X.509 Library for Research
Other
134 stars 83 forks source link

verifier: add AppendFromPEMErr method #358

Closed elliotcubit closed 1 year ago

elliotcubit commented 1 year ago

Return errors from the io.Reader here. Also return a slice of errors encountered while parsing certificates in the PEM.

Previously, it was necessary for the caller to know how many certificates were in the input PEM in order to check this function for error.

codyprime commented 1 year ago

The CI failure is unrelated to this PR, and is due to go version (1.20.3 being use by CI). The TLS 1.3 Feature branch needs to be updated, but that doesn't need to block this PR.