I need to iterate over the subject alt names in a WOLFSSL_X509 object. The API has a function to do this, wolfSSL_X509_get_next_altname(), but there appears to be no way to reset the iterator formed by the altNamesNext member. It is only ever initialized in CopyDecodedToX509(). Once the list is exhausted you can't retrieve the list of names again.

This seems to be a deficiency in the public API for certificate handling. Should there not be a way to reset altNamesNext back to the start of the list?