2010-01-16 13:32:14 +00:00
|
|
|
#include <openssl/x509.h>
|
|
|
|
#include <openssl/asn1_mac.h>
|
|
|
|
|
2015-01-22 03:29:12 +00:00
|
|
|
typedef struct X {
|
2010-01-16 13:32:14 +00:00
|
|
|
STACK_OF(X509_EXTENSION) *ext;
|
2015-01-22 03:29:12 +00:00
|
|
|
} X;
|
2010-01-16 13:32:14 +00:00
|
|
|
|
|
|
|
/* This isn't meant to run particularly, it's just to test type checking */
|
|
|
|
int main(int argc, char **argv)
|
2015-01-22 03:29:12 +00:00
|
|
|
{
|
2010-01-16 13:32:14 +00:00
|
|
|
X *x = NULL;
|
|
|
|
unsigned char **pp = NULL;
|
|
|
|
|
|
|
|
M_ASN1_I2D_vars(x);
|
|
|
|
M_ASN1_I2D_len_SEQUENCE_opt_type(X509_EXTENSION, x->ext,
|
2015-01-22 03:29:12 +00:00
|
|
|
i2d_X509_EXTENSION);
|
2010-01-16 13:32:14 +00:00
|
|
|
M_ASN1_I2D_seq_total();
|
|
|
|
M_ASN1_I2D_put_SEQUENCE_opt_type(X509_EXTENSION, x->ext,
|
2015-01-22 03:29:12 +00:00
|
|
|
i2d_X509_EXTENSION);
|
2010-01-16 13:32:14 +00:00
|
|
|
M_ASN1_I2D_finish();
|
2015-01-22 03:29:12 +00:00
|
|
|
}
|