mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #6214 from miyazakh/altname_next_reset
This commit is contained in:
@ -3381,8 +3381,15 @@ char* wolfSSL_X509_get_next_altname(WOLFSSL_X509* cert)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* already went through them */
|
/* already went through them */
|
||||||
if (cert->altNamesNext == NULL)
|
if (cert->altNamesNext == NULL) {
|
||||||
|
#ifdef WOLFSSL_MULTICIRCULATE_ALTNAMELIST
|
||||||
|
/* Reset altNames List to head
|
||||||
|
* so that caller can circulate the list again
|
||||||
|
*/
|
||||||
|
cert->altNamesNext = cert->altNames;
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
ret = cert->altNamesNext->name;
|
ret = cert->altNamesNext->name;
|
||||||
#if defined(OPENSSL_ALL) || defined(WOLFSSL_IP_ALT_NAME)
|
#if defined(OPENSSL_ALL) || defined(WOLFSSL_IP_ALT_NAME)
|
||||||
|
Reference in New Issue
Block a user