1gnutls_pkcs7_verify(3)              gnutls              gnutls_pkcs7_verify(3)
2
3
4

NAME

6       gnutls_pkcs7_verify - API function
7

SYNOPSIS

9       #include <gnutls/pkcs7.h>
10
11       int  gnutls_pkcs7_verify(gnutls_pkcs7_t pkcs7, gnutls_x509_trust_list_t
12       tl, gnutls_typed_vdata_st * vdata, unsigned  int  vdata_size,  unsigned
13       idx, const gnutls_datum_t * data, unsigned flags);
14

ARGUMENTS

16       gnutls_pkcs7_t pkcs7
17                   should contain a gnutls_pkcs7_t type
18
19       gnutls_x509_trust_list_t tl
20                   A list of trusted certificates
21
22       gnutls_typed_vdata_st * vdata
23                   an array of typed data
24
25       unsigned int vdata_size
26                   the number of data elements
27
28       unsigned idx
29                   the index of the signature info to check
30
31       const gnutls_datum_t * data
32                   The data to be verified or NULL
33
34       unsigned flags
35                   Zero or an OR list of gnutls_certificate_verify_flags
36

DESCRIPTION

38       This  function  will  verify  the  provided  data against the signature
39       present in the SignedData of the PKCS 7 structure. If the data provided
40       are  NULL  then  the data in the encapsulatedContent field will be used
41       instead.
42

RETURNS

44       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
45       error  value.  A  verification  error results to a GNUTLS_E_PK_SIG_VER‐
46       IFY_FAILED  and  the  lack  of  encapsulated  data  to  verify   to   a
47       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE.
48

SINCE

50       3.4.2
51

REPORTING BUGS

53       Report bugs to <bugs@gnutls.org>.
54       Home page: http://www.gnutls.org
55
56
58       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
59       Copying  and  distribution  of this file, with or without modification,
60       are permitted in any medium  without  royalty  provided  the  copyright
61       notice and this notice are preserved.
62

SEE ALSO

64       The  full  documentation  for gnutls is maintained as a Texinfo manual.
65       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
66       visit
67
68       http://www.gnutls.org/manual/
69
70gnutls                               3.6.5              gnutls_pkcs7_verify(3)
Impressum