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