From: Nikos Mavrogiannopoulos Date: Tue, 8 May 2001 21:33:55 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls-0-1-0-srp~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54259eb93720b1544ebbc53e32bf33b77188af36;p=thirdparty%2Fgnutls.git *** empty log message *** --- diff --git a/doc/API b/doc/API index 7d108a7c05..18b4eef2ff 100644 --- a/doc/API +++ b/doc/API @@ -100,7 +100,10 @@ int gnutls_set_kx_cred( GNUTLS_STATE state, int kx, void* cred, int cred_size); 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. diff --git a/lib/gnutls.h b/lib/gnutls.h index 70f72c52d0..22fd04dff8 100644 --- a/lib/gnutls.h +++ b/lib/gnutls.h @@ -146,4 +146,11 @@ typedef struct { #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