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