Blame doc/functions/gnutls_pkcs12_mac_info
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_pkcs12_mac_info} (gnutls_pkcs12_t @var{pkcs12}, unsigned int * @var{mac}, void * @var{salt}, unsigned int * @var{salt_size}, unsigned int * @var{iter_count}, char ** @var{oid})
|
|
Packit Service |
4684c1 |
@var{pkcs12}: A pkcs12 type
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{mac}: the MAC algorithm used as @code{gnutls_mac_algorithm_t}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{salt}: the salt used for string to key (if non-NULL then @code{salt_size} initially holds its size)
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{salt_size}: string to key salt size
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{iter_count}: string to key iteration count
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{oid}: if non-NULL it will contain an allocated null-terminated variable with the OID
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will provide information on the MAC algorithm used
|
|
Packit Service |
4684c1 |
in a PKCS @code{12} structure. If the structure algorithms
|
|
Packit Service |
4684c1 |
are unknown the code @code{GNUTLS_E_UNKNOWN_HASH_ALGORITHM} will be returned,
|
|
Packit Service |
4684c1 |
and only @code{oid} , will be set. That is, @code{oid} will be set on structures
|
|
Packit Service |
4684c1 |
with a MAC whether supported or not. It must be deinitialized using @code{gnutls_free()} .
|
|
Packit Service |
4684c1 |
The other variables are only set on supported structures.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} @code{GNUTLS_E_INVALID_REQUEST} if the provided structure doesn't contain a MAC,
|
|
Packit Service |
4684c1 |
@code{GNUTLS_E_UNKNOWN_HASH_ALGORITHM} if the structure's MAC isn't supported, or
|
|
Packit Service |
4684c1 |
another negative error code in case of a failure. Zero on success.
|
|
Packit Service |
4684c1 |
@end deftypefun
|