diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 07:33:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 07:33:12 +0000 |
commit | 36082a2fe36ecd800d784ae44c14f1f18c66a7e9 (patch) | |
tree | 6c68e0c0097987aff85a01dabddd34b862309a7c /doc/functions/gnutls_pkcs7_get_embedded_data | |
parent | Initial commit. (diff) | |
download | gnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.tar.xz gnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.zip |
Adding upstream version 3.7.9.upstream/3.7.9upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/functions/gnutls_pkcs7_get_embedded_data')
-rw-r--r-- | doc/functions/gnutls_pkcs7_get_embedded_data | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/functions/gnutls_pkcs7_get_embedded_data b/doc/functions/gnutls_pkcs7_get_embedded_data new file mode 100644 index 0000000..4230336 --- /dev/null +++ b/doc/functions/gnutls_pkcs7_get_embedded_data @@ -0,0 +1,27 @@ + + + + +@deftypefun {int} {gnutls_pkcs7_get_embedded_data} (gnutls_pkcs7_t @var{pkcs7}, unsigned @var{flags}, gnutls_datum_t * @var{data}) +@var{pkcs7}: should contain a gnutls_pkcs7_t type + +@var{flags}: must be zero or @code{GNUTLS_PKCS7_EDATA_GET_RAW} + +@var{data}: will hold the embedded data in the provided structure + +This function will return the data embedded in the signature of +the PKCS7 structure. If no data are available then +@code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} will be returned. + +The returned data must be de-allocated using @code{gnutls_free()} . + +Note, that this function returns the exact same data that are +authenticated. If the @code{GNUTLS_PKCS7_EDATA_GET_RAW} flag is provided, +the returned data will be including the wrapping tag/value as +they are encoded in the structure. + +@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a +negative error value. + +@strong{Since:} 3.4.8 +@end deftypefun |