sk_value was also suffering from de-const-ification.

Also, add in a couple of missing declarations in pkcs7 code.
This commit is contained in:
Geoff Thorpe 2000-05-31 17:35:11 +00:00
parent b108611622
commit e20d7d7167
3 changed files with 4 additions and 2 deletions

View File

@ -74,6 +74,7 @@ char *param_name; /* Param name e.g. "micalg" */
char *param_value; /* Param value e.g. "sha1" */
} MIME_PARAM;
DECLARE_STACK_OF(MIME_PARAM)
IMPLEMENT_STACK_OF(MIME_PARAM)
typedef struct {
@ -82,6 +83,7 @@ char *value; /* Value of line e.g. "text/plain" */
STACK_OF(MIME_PARAM) *params; /* Zero or more parameters */
} MIME_HEADER;
DECLARE_STACK_OF(MIME_HEADER)
IMPLEMENT_STACK_OF(MIME_HEADER)
static int B64_write_PKCS7(BIO *bio, PKCS7 *p7);

View File

@ -285,7 +285,7 @@ int sk_num(const STACK *st)
return st->num;
}
char *sk_value(STACK *st, int i)
char *sk_value(const STACK *st, int i)
{
if(st == NULL) return NULL;
return st->data[i];

View File

@ -80,7 +80,7 @@ typedef struct stack_st
#define M_sk_value(sk,n) ((sk) ? (sk)->data[n] : NULL)
int sk_num(const STACK *);
char *sk_value(STACK *, int);
char *sk_value(const STACK *, int);
char *sk_set(STACK *, int, char *);