| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pkcs7_print} (gnutls_pkcs7_t @var{pkcs7}, gnutls_certificate_print_formats_t @var{format}, gnutls_datum_t * @var{out}) |
| 6 |
@var{pkcs7}: The PKCS7 struct to be printed |
| 7 |
|
| 8 |
@var{format}: Indicate the format to use |
| 9 |
|
| 10 |
@var{out}: Newly allocated datum with null terminated string. |
| 11 |
|
| 12 |
This function will pretty print a signed PKCS @code{7} structure, suitable for |
| 13 |
display to a human. |
| 14 |
|
| 15 |
Currently the supported formats are @code{GNUTLS_CRT_PRINT_FULL} and |
| 16 |
@code{GNUTLS_CRT_PRINT_COMPACT} . |
| 17 |
|
| 18 |
The output @code{out} needs to be deallocated using @code{gnutls_free()} . |
| 19 |
|
| 20 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 21 |
negative error value. |
| 22 |
@end deftypefun |