Revision 36be5f77d0325ded25d0a36caee9860cffe721e8 authored by Richard Levitte on 14 December 2015, 02:53:06 UTC, committed by Richard Levitte on 14 December 2015, 10:24:24 UTC
Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit 474a53b3a36568d19d7b918ee879efd2707e7c67)
1 parent f612bdb
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 ...