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 /apps | |
parent | b3ca645f479b1f0bcfa1d1a65c955e8b7ff33de6 (diff) |
Another stack.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/req.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/req.c b/apps/req.c index b7342f071d..c3f6a1a0ca 100644 --- a/apps/req.c +++ b/apps/req.c @@ -108,8 +108,9 @@ */ static int make_REQ(X509_REQ *req,EVP_PKEY *pkey,int attribs); -static int add_attribute_object(STACK *n, char *text, char *def, - char *value, int nid,int min,int max); +static int add_attribute_object(STACK_OF(X509_ATTRIBUTE) *n, char *text, + char *def, char *value, int nid, int min, + int max); static int add_DN_object(X509_NAME *n, char *text, char *def, char *value, int nid,int min,int max); static void MS_CALLBACK req_cb(int p,int n,char *arg); @@ -1022,8 +1023,9 @@ err: return(ret); } -static int add_attribute_object(STACK *n, char *text, char *def, char *value, - int nid, int min, int max) +static int add_attribute_object(STACK_OF(X509_ATTRIBUTE) *n, char *text, + char *def, char *value, int nid, int min, + int max) { int i,z; X509_ATTRIBUTE *xa=NULL; @@ -1098,7 +1100,7 @@ start: at=NULL; /* only one item per attribute */ - if (!sk_push(n,(char *)xa)) goto err; + if (!sk_X509_ATTRIBUTE_push(n,xa)) goto err; return(1); err: if (xa != NULL) X509_ATTRIBUTE_free(xa); |