Documentation fixup for wolfSSL_get_chain_cert();

This commit is contained in:
Anthony Hu
2023-04-05 15:12:43 -04:00
parent 10c1009bbd
commit 3e58e47856

View File

@@ -6368,6 +6368,9 @@ unsigned char* wolfSSL_get_chain_cert(WOLFSSL_X509_CHAIN* chain, int idx);
memory SESSION_CACHE.
\param idx the index of the WOLFSSL_X509 certificate.
Note that it is the user's responsibility to free the returned memory
by calling wolfSSL_FreeX509().
_Example_
\code
WOLFSSL_X509_CHAIN* chain = &session->chain;
@@ -6377,9 +6380,10 @@ unsigned char* wolfSSL_get_chain_cert(WOLFSSL_X509_CHAIN* chain, int idx);
prt = wolfSSL_get_chain_X509(chain, idx);
if(ptr != NULL){
//ptr contains the cert at the index specified
// ptr contains the cert at the index specified
wolfSSL_FreeX509(ptr);
} else {
// ptr is NULL
// ptr is NULL
}
\endcode