1gnutls_pubkey_verify_data(3) gnutls gnutls_pubkey_verify_data(3)
2
3
4
6 gnutls_pubkey_verify_data - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_pubkey_verify_data(gnutls_pubkey_t pubkey, unsigned int
12 flags, const gnutls_datum_t * data, const gnutls_datum_t * signature);
13
15 gnutls_pubkey_t pubkey
16 Holds the public key
17
18 unsigned int flags
19 Zero or one of gnutls_pubkey_flags_t
20
21 const gnutls_datum_t * data
22 holds the signed data
23
24 const gnutls_datum_t * signature
25 contains the signature
26
28 This function will verify the given signed data, using the parameters
29 from the certificate.
30
31 Deprecated. This function cannot be easily used securely. Use
32 gnutls_pubkey_verify_data2() instead.
33
35 In case of a verification failure GNUTLS_E_PK_SIG_VERIFY_FAILED is
36 returned, and zero or positive code on success.
37
39 2.12.0
40
42 Report bugs to <bugs@gnutls.org>.
43 Home page: http://www.gnutls.org
44
45
47 Copyright © 2001-2014 Free Software Foundation, Inc..
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
55 visit
56
57 http://www.gnutls.org/manual/
58
59gnutls 3.3.29 gnutls_pubkey_verify_data(3)