Iterating over x509.altname stack crashes when encountering type IP
Closed this issue · 2 comments
Evengard commented
From time to time I am getting a certificate which have the altname IP-type fields present. I don't really need them, but I still need to iterate over all altnames to retrieve the needed ones, but iteration crashes when encountering the IP type.
Replacing the error("NYI")
by v = "NOTIMPLEMENTED"
helped, but that's more of a hack than a solution.
I wonder if it is possible to somehow patch it that it doesn't crash on nonimplemented/unknown altname types.
Evengard commented
Oh ok thanks, gonna retry =)