Add copyright to manpages
[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
37
38 =head1 COPYRIGHT
39
40 Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.
41
42 Licensed under the OpenSSL license (the "License").  You may not use
43 this file except in compliance with the License.  You can obtain a copy
44 in the file LICENSE in the source distribution or at
45 L<https://www.openssl.org/source/license.html>.
46
47 =cut