fffonion/lua-resty-openssl

Iterating over x509.altname stack crashes when encountering type IP

Closed this issue · 2 comments

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 It's actually just fixed : ) Please try the 0.7.1 release.

Oh ok thanks, gonna retry =)