1#include <openssl/x509.h>
2#include <openssl/asn1_mac.h>
3
4typedef struct X
5    {
6    STACK_OF(X509_EXTENSION) *ext;
7    } X;
8
9/* This isn't meant to run particularly, it's just to test type checking */
10int main(int argc, char **argv)
11    {
12    X *x = NULL;
13    unsigned char **pp = NULL;
14
15    M_ASN1_I2D_vars(x);
16    M_ASN1_I2D_len_SEQUENCE_opt_type(X509_EXTENSION, x->ext,
17				     i2d_X509_EXTENSION);
18    M_ASN1_I2D_seq_total();
19    M_ASN1_I2D_put_SEQUENCE_opt_type(X509_EXTENSION, x->ext,
20				     i2d_X509_EXTENSION);
21    M_ASN1_I2D_finish();
22    }
23