fix SESSION_CERTS and SHOW_CERTS example with CyaSSL API

This commit is contained in:
toddouska 2012-08-08 11:35:39 -07:00
parent 169331cf81
commit eedc2f3e47

View File

@ -283,8 +283,8 @@ static INLINE void showPeer(CYASSL* ssl)
#if defined(SESSION_CERTS) && defined(SHOW_CERTS)
{
X509_CHAIN* chain = CyaSSL_get_peer_chain(ssl);
int count = CyaSSL_get_chain_count(chain);
CYASSL_X509_CHAIN* chain = CyaSSL_get_peer_chain(ssl);
int count = CyaSSL_get_chain_count(chain);
int i;
for (i = 0; i < count; i++) {