Commit 5b18d302 authored by Rich Salz's avatar Rich Salz
Browse files

util/mkstack.pl now generates entire safestack.h



The mkstack.pl script now generates the entire safestack.h file.
It generates output that follows the coding style.
Also, removed all instances of the obsolete IMPLEMENT_STACK_OF
macro.

Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
parent 1a53f1d6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -455,6 +455,4 @@ BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn)
    return (ret);
}

IMPLEMENT_STACK_OF(ASN1_INTEGER)

IMPLEMENT_ASN1_SET_OF(ASN1_INTEGER)
+0 −2
Original line number Diff line number Diff line
@@ -400,6 +400,4 @@ ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len,
    return (OBJ_dup(&o));
}

IMPLEMENT_STACK_OF(ASN1_OBJECT)

IMPLEMENT_ASN1_SET_OF(ASN1_OBJECT)
+0 −2
Original line number Diff line number Diff line
@@ -302,8 +302,6 @@ static void st_free(ASN1_STRING_TABLE *tbl)
}


IMPLEMENT_STACK_OF(ASN1_STRING_TABLE)

#ifdef STRING_TABLE_TEST

main()
+0 −2
Original line number Diff line number Diff line
@@ -103,8 +103,6 @@ int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value)
    return 1;
}

IMPLEMENT_STACK_OF(ASN1_TYPE)

IMPLEMENT_ASN1_SET_OF(ASN1_TYPE)

/* Returns 0 if they are equal, != 0 otherwise. */
+0 −2
Original line number Diff line number Diff line
@@ -78,7 +78,6 @@ typedef struct {
} MIME_PARAM;

DECLARE_STACK_OF(MIME_PARAM)
IMPLEMENT_STACK_OF(MIME_PARAM)

typedef struct {
    char *name;                 /* Name of line e.g. "content-type" */
@@ -87,7 +86,6 @@ typedef struct {
} MIME_HEADER;

DECLARE_STACK_OF(MIME_HEADER)
IMPLEMENT_STACK_OF(MIME_HEADER)

static int asn1_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags,
                            const ASN1_ITEM *it);
Loading