08d08766cedad98fa4cf535c83f915684c0589f6
[openssl.git] / doc / crypto / d2i_X509_SIG.pod
1 =pod
2
3 =head1 NAME
4
5 d2i_X509_SIG, i2d_X509_SIG - DigestInfo functions.
6
7 =head1 SYNOPSIS
8
9  #include <openssl/x509.h>
10
11  X509_SIG *d2i_X509_SIG(X509_SIG **a, unsigned char **pp, long length);
12  int i2d_X509_SIG(X509_SIG *a, unsigned char **pp);
13  void X509_SIG_get0(X509_ALGOR **palg, ASN1_OCTET_STRING **pdigest,
14                     X509_SIG *sig);
15
16 =head1 DESCRIPTION
17
18 The functions d2i_X509_SIG() and i2d_X509_SIG() decode and encode an
19 X509_SIG structure which is equivalent to the B<DigestInfo> structure
20 defined in PKCS#1 and PKCS#7.
21
22 Otherwise they behave in a similar way to d2i_X509() and i2d_X509()
23 described in the L<d2i_X509(3)> manual page.
24
25 X509_SIG_get0() returns pointers to the algorithm identifier and digest
26 value in B<sig>. These values can then be examined or initialised.
27
28 =head1 SEE ALSO
29
30 L<d2i_X509(3)>
31
32 =head1 HISTORY
33
34 TBA
35
36 =cut