Add type-safe STACKs and SETs.

This commit is contained in:
Ben Laurie
1999-04-12 17:23:57 +00:00
parent a36a1a5146
commit f73e07cf42
48 changed files with 1147 additions and 873 deletions

View File

@@ -250,7 +250,7 @@ PKCS7 *p7;
X509 *x509;
{
int i;
STACK **sk;
STACK_OF(X509) **sk;
i=OBJ_obj2nid(p7->type);
switch (i)
@@ -267,9 +267,9 @@ X509 *x509;
}
if (*sk == NULL)
*sk=sk_new_null();
*sk=sk_X509_new_null();
CRYPTO_add(&x509->references,1,CRYPTO_LOCK_X509);
sk_push(*sk,(char *)x509);
sk_X509_push(*sk,x509);
return(1);
}