Add type-safe STACKs and SETs.
[openssl.git] / ssl / s3_both.c
index 0dad8919c75f444616fa00c13945aa8b0be748c6..c3d660ff33736d64082113a25f0a20f136f7d527 100644 (file)
@@ -245,9 +245,9 @@ X509 *x;
 
        /* Thawte special :-) */
        if (s->ctx->extra_certs != NULL)
-       for (i=0; i<sk_num(s->ctx->extra_certs); i++)
+       for (i=0; i<sk_X509_num(s->ctx->extra_certs); i++)
                {
-               x=(X509 *)sk_value(s->ctx->extra_certs,i);
+               x=sk_X509_value(s->ctx->extra_certs,i);
                n=i2d_X509(x,NULL);
                if (!BUF_MEM_grow(buf,(int)(n+l+3)))
                        {