From 2778cbce8c126a74db788bd1f971cf0fec222d5a Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 22 Aug 2019 10:40:25 +0200 Subject: [PATCH] Fixed type of sk_* macro. --- libfreerdp/crypto/tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index 8a02ed081..09e6ef1ef 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -1258,10 +1258,10 @@ static BOOL tls_extract_pem(CryptoCert cert, BYTE** PublicKey, DWORD* PublicKeyL if (cert->px509chain) { - count = sk_BIO_num(cert->px509chain); + count = sk_X509_num(cert->px509chain); for (x=0; xpx509chain, x); + X509* c = sk_X509_value(cert->px509chain, x); status = PEM_write_bio_X509(bio, c); if (status < 0) {