Revision 47050853f13b07f91b5b4a058dcb188621296f21 authored by Matt Caswell on 21 January 2015, 23:56:21 UTC, committed by Matt Caswell on 22 January 2015, 09:38:49 UTC
Reviewed-by: Tim Hudson <tjh@openssl.org>
1 parent 10621ef
asn1test.c
#include <openssl/x509.h>
#include <openssl/asn1_mac.h>
typedef struct X {
STACK_OF(X509_EXTENSION) *ext;
} X;
/* This isn't meant to run particularly, it's just to test type checking */
int main(int argc, char **argv)
{
X *x = NULL;
unsigned char **pp = NULL;
M_ASN1_I2D_vars(x);
M_ASN1_I2D_len_SEQUENCE_opt_type(X509_EXTENSION, x->ext,
i2d_X509_EXTENSION);
M_ASN1_I2D_seq_total();
M_ASN1_I2D_put_SEQUENCE_opt_type(X509_EXTENSION, x->ext,
i2d_X509_EXTENSION);
M_ASN1_I2D_finish();
}

Computing file changes ...