forked from wolfSSL/wolfssl
fix SESSION_CERTS and SHOW_CERTS example with CyaSSL API
This commit is contained in:
@ -283,8 +283,8 @@ static INLINE void showPeer(CYASSL* ssl)
|
|||||||
|
|
||||||
#if defined(SESSION_CERTS) && defined(SHOW_CERTS)
|
#if defined(SESSION_CERTS) && defined(SHOW_CERTS)
|
||||||
{
|
{
|
||||||
X509_CHAIN* chain = CyaSSL_get_peer_chain(ssl);
|
CYASSL_X509_CHAIN* chain = CyaSSL_get_peer_chain(ssl);
|
||||||
int count = CyaSSL_get_chain_count(chain);
|
int count = CyaSSL_get_chain_count(chain);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
|
Reference in New Issue
Block a user