6.4 Associating the credentials
Each authentication method is associated with a key exchange method, and a credentials type.
The contents of the credentials is method-dependent, e.g. certificates
for certificate authentication and should be initialized and associated
with a session (see gnutls_credentials_set). A mapping of the key exchange methods
with the credential types is shown in Table 6.2.
|Authentication method||Key exchange||Client credentials||Server credentials|
|Certificate and Raw public-key|
|Password and certificate|
Table 6.2: Key exchange algorithms and the corresponding credential types.