summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2000-05-17 09:13:36 +0000
committerBen Laurie <ben@openssl.org>2000-05-17 09:13:36 +0000
commitabc9400e100632760727d150946f5269a0a5227b (patch)
tree80fe5d8285f5e04a9aab9b523e0cd2fc6b083f58 /crypto/asn1
parent371acb22e68ff23128485ce134a9931de889e719 (diff)
Typesafety Thought Police part 5.
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_int.c3
-rw-r--r--crypto/asn1/asn1.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/crypto/asn1/a_int.c b/crypto/asn1/a_int.c
index 8b6794e8c1..c6a6b725c6 100644
--- a/crypto/asn1/a_int.c
+++ b/crypto/asn1/a_int.c
@@ -433,3 +433,6 @@ BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn)
if(ai->type == V_ASN1_NEG_INTEGER) bn->neg = 1;
return(ret);
}
+
+IMPLEMENT_STACK_OF(ASN1_INTEGER)
+IMPLEMENT_ASN1_SET_OF(ASN1_INTEGER)
diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h
index 1e45aefc7a..e137f6b7c7 100644
--- a/crypto/asn1/asn1.h
+++ b/crypto/asn1/asn1.h
@@ -293,6 +293,9 @@ typedef struct asn1_string_st ASN1_UTF8STRING;
typedef int ASN1_NULL;
+DECLARE_STACK_OF(ASN1_INTEGER)
+DECLARE_ASN1_SET_OF(ASN1_INTEGER)
+
typedef struct asn1_type_st
{
int type;