specified kx algorithm and on the current state (client or server).
cred_size is the size of the structure.
- In GNUTLS_KX_ANON cred should be NULL.
+ * For GNUTLS_KX_ANON cred should be NULL.
+ * For GNUTLS_KX_SRP cred should be SRP_CLIENT_CREDENTIALS
+ in case of a client, and SRP_SERVER_CREDENTIALS, in case
+ of a server.
void gnutls_set_kx_priority( GNUTLS_STATE state, int num, ...);
like gnutls_set_cipher_priority, but for key exchange methods.
#define GNUTLS_E_DECOMPRESSION_FAILED -26
#define GNUTLS_E_COMPRESSION_FAILED -27
#define GNUTLS_E_AGAIN -28
+#define GNUTLS_E_EXPIRED -29
+#define GNUTLS_E_DB_ERROR -30
+#define GNUTLS_E_PWD_ERROR -31
+#define GNUTLS_E_INSUFICIENT_CRED -32
+#define GNUTLS_E_HASH_FAILED -33
+#define GNUTLS_E_PARSING_ERROR -34
+#define GNUTLS_E_MPI_PRINT_FAILED -35
#define GNUTLS_E_UNIMPLEMENTED_FEATURE -50