OpenSSL
1.0.1c
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
test
asn1test.c
Go to the documentation of this file.
1
#include <
openssl/x509.h
>
2
#include <
openssl/asn1_mac.h
>
3
4
typedef
struct
X
5
{
6
STACK_OF
(
X509_EXTENSION
) *
ext
;
7
}
X
;
8
9
/* This isn't meant to run particularly, it's just to test type checking */
10
int
main
(
int
argc,
char
**argv)
11
{
12
X
*x = NULL;
13
unsigned
char
**
pp
= NULL;
14
15
M_ASN1_I2D_vars
(x);
16
M_ASN1_I2D_len_SEQUENCE_opt_type
(
X509_EXTENSION
, x->ext,
17
i2d_X509_EXTENSION);
18
M_ASN1_I2D_seq_total
();
19
M_ASN1_I2D_put_SEQUENCE_opt_type
(
X509_EXTENSION
, x->ext,
20
i2d_X509_EXTENSION);
21
M_ASN1_I2D_finish
();
22
}
Generated on Thu Jan 10 2013 09:53:44 for OpenSSL by
1.8.2