diff options
author | Ben Laurie <ben@openssl.org> | 1999-05-01 18:08:44 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-05-01 18:08:44 +0000 |
commit | d500de16725216503786dba48db519d3031614e7 (patch) | |
tree | 477465faf77c13ed41f53ebb656fd93f9026b2a6 /crypto/asn1/t_req.c | |
parent | b3ca645f479b1f0bcfa1d1a65c955e8b7ff33de6 (diff) |
Another stack.
Diffstat (limited to 'crypto/asn1/t_req.c')
-rw-r--r-- | crypto/asn1/t_req.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/asn1/t_req.c b/crypto/asn1/t_req.c index 6e04b0861c..b83684416d 100644 --- a/crypto/asn1/t_req.c +++ b/crypto/asn1/t_req.c @@ -89,7 +89,7 @@ int X509_REQ_print(BIO *bp, X509_REQ *x) const char *neg; X509_REQ_INFO *ri; EVP_PKEY *pkey; - STACK *sk; + STACK_OF(X509_ATTRIBUTE) *sk; char str[128]; ri=x->req_info; @@ -142,7 +142,7 @@ int X509_REQ_print(BIO *bp, X509_REQ *x) if (BIO_puts(bp,str) <= 0) goto err; sk=x->req_info->attributes; - if ((sk == NULL) || (sk_num(sk) == 0)) + if ((sk == NULL) || (sk_X509_ATTRIBUTE_num(sk) == 0)) { if (!x->req_info->req_kludge) { @@ -152,7 +152,7 @@ int X509_REQ_print(BIO *bp, X509_REQ *x) } else { - for (i=0; i<sk_num(sk); i++) + for (i=0; i<sk_X509_ATTRIBUTE_num(sk); i++) { ASN1_TYPE *at; X509_ATTRIBUTE *a; @@ -160,7 +160,7 @@ int X509_REQ_print(BIO *bp, X509_REQ *x) ASN1_TYPE *t; int j,type=0,count=1,ii=0; - a=(X509_ATTRIBUTE *)sk_value(sk,i); + a=sk_X509_ATTRIBUTE_value(sk,i); sprintf(str,"%12s",""); if (BIO_puts(bp,str) <= 0) goto err; if ((j=i2a_ASN1_OBJECT(bp,a->object)) > 0) |