| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_psk_allocate_server_credentials2} (gnutls_psk_server_credentials_t * @var{sc}, gnutls_mac_algorithm_t @var{mac}) |
| 6 |
@var{sc}: is a pointer to a @code{gnutls_psk_server_credentials_t} type. |
| 7 |
|
| 8 |
@var{mac}: encryption algorithm to use |
| 9 |
|
| 10 |
Allocate a gnutls_psk_server_credentials_t structure and initializes |
| 11 |
the HMAC binder algorithm to @code{mac} . If @code{mac} is set to GNUTLS_MAC_UNKNOWN |
| 12 |
both possible algorithms SHA384 and SHA256 are applied to find a matching |
| 13 |
binder value. |
| 14 |
|
| 15 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise |
| 16 |
an error code is returned. |
| 17 |
@end deftypefun |