Fixed type of sk_* macro.
authorArmin Novak <armin.novak@thincast.com>
Thu, 22 Aug 2019 08:40:25 +0000 (10:40 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 22 Aug 2019 08:40:25 +0000 (10:40 +0200)
libfreerdp/crypto/tls.c

index 8a02ed0..09e6ef1 100644 (file)
@@ -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; x<count; x++)
                {
-                       X509* c = sk_BIO_value(cert->px509chain, x);
+                       X509* c = sk_X509_value(cert->px509chain, x);
                        status = PEM_write_bio_X509(bio, c);
                        if (status < 0)
                        {