aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/tls/gnutls_auth.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-08-24 17:53:48 +0000
committerChristian Grothoff <christian@grothoff.org>2008-08-24 17:53:48 +0000
commit46622f6b02b8ac3138cd2ef57fc8b1a5e7d893fd (patch)
tree1212af95cfd01578229f9ae3a4b259dcdee2da0b /src/daemon/https/tls/gnutls_auth.c
parentbb5fc0ba651bafc59a429853eb965518d436d82a (diff)
downloadlibmicrohttpd-46622f6b02b8ac3138cd2ef57fc8b1a5e7d893fd.tar.gz
libmicrohttpd-46622f6b02b8ac3138cd2ef57fc8b1a5e7d893fd.zip
renaming enums to have MHD_ prefix always, removing a few redundant values
Diffstat (limited to 'src/daemon/https/tls/gnutls_auth.c')
-rw-r--r--src/daemon/https/tls/gnutls_auth.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/daemon/https/tls/gnutls_auth.c b/src/daemon/https/tls/gnutls_auth.c
index b517c285..a7ad89cc 100644
--- a/src/daemon/https/tls/gnutls_auth.c
+++ b/src/daemon/https/tls/gnutls_auth.c
@@ -91,7 +91,7 @@ MHD_gnutls_credentials_clear (mhd_gtls_session_t session)
91 **/ 91 **/
92int 92int
93MHD_gnutls_credentials_set (mhd_gtls_session_t session, 93MHD_gnutls_credentials_set (mhd_gtls_session_t session,
94 gnutls_credentials_type_t type, void *cred) 94 enum MHD_GNUTLS_CredentialsType type, void *cred)
95{ 95{
96 auth_cred_st *ccred = NULL, *pcred = NULL; 96 auth_cred_st *ccred = NULL, *pcred = NULL;
97 int exists = 0; 97 int exists = 0;
@@ -160,7 +160,7 @@ MHD_gnutls_credentials_set (mhd_gtls_session_t session,
160 * Eg. for CERTIFICATE ciphersuites (key exchange algorithms: KX_RSA, KX_DHE_RSA), 160 * Eg. for CERTIFICATE ciphersuites (key exchange algorithms: KX_RSA, KX_DHE_RSA),
161 * the same function are to be used to access the authentication data. 161 * the same function are to be used to access the authentication data.
162 **/ 162 **/
163gnutls_credentials_type_t 163enum MHD_GNUTLS_CredentialsType
164MHD_gtls_auth_get_type (mhd_gtls_session_t session) 164MHD_gtls_auth_get_type (mhd_gtls_session_t session)
165{ 165{
166/* This is not the credentials we must set, but the authentication data 166/* This is not the credentials we must set, but the authentication data
@@ -183,7 +183,7 @@ MHD_gtls_auth_get_type (mhd_gtls_session_t session)
183 * to access authentication data. 183 * to access authentication data.
184 * 184 *
185 **/ 185 **/
186gnutls_credentials_type_t 186enum MHD_GNUTLS_CredentialsType
187MHD_gtls_auth_server_get_type (mhd_gtls_session_t session) 187MHD_gtls_auth_server_get_type (mhd_gtls_session_t session)
188{ 188{
189 return 189 return
@@ -201,7 +201,7 @@ MHD_gtls_auth_server_get_type (mhd_gtls_session_t session)
201 * to access authentication data. 201 * to access authentication data.
202 * 202 *
203 **/ 203 **/
204gnutls_credentials_type_t 204enum MHD_GNUTLS_CredentialsType
205MHD_gtls_auth_client_get_type (mhd_gtls_session_t session) 205MHD_gtls_auth_client_get_type (mhd_gtls_session_t session)
206{ 206{
207 return 207 return
@@ -217,7 +217,7 @@ MHD_gtls_auth_client_get_type (mhd_gtls_session_t session)
217 */ 217 */
218const void * 218const void *
219mhd_gtls_get_kx_cred (mhd_gtls_session_t session, 219mhd_gtls_get_kx_cred (mhd_gtls_session_t session,
220 gnutls_kx_algorithm_t algo, int *err) 220 enum MHD_GNUTLS_KeyExchangeAlgorithm algo, int *err)
221{ 221{
222 int server = session->security_parameters.entity == GNUTLS_SERVER ? 1 : 0; 222 int server = session->security_parameters.entity == GNUTLS_SERVER ? 1 : 0;
223 223
@@ -226,7 +226,7 @@ mhd_gtls_get_kx_cred (mhd_gtls_session_t session,
226} 226}
227 227
228const void * 228const void *
229mhd_gtls_get_cred (mhd_gtls_key_st key, gnutls_credentials_type_t type, int *err) 229mhd_gtls_get_cred (mhd_gtls_key_st key, enum MHD_GNUTLS_CredentialsType type, int *err)
230{ 230{
231 const void *retval = NULL; 231 const void *retval = NULL;
232 int _err = -1; 232 int _err = -1;
@@ -354,7 +354,7 @@ mhd_gtls_free_auth_info (mhd_gtls_session_t session)
354 */ 354 */
355int 355int
356mhd_gtls_auth_info_set (mhd_gtls_session_t session, 356mhd_gtls_auth_info_set (mhd_gtls_session_t session,
357 gnutls_credentials_type_t type, int size, 357 enum MHD_GNUTLS_CredentialsType type, int size,
358 int allow_change) 358 int allow_change)
359{ 359{
360 if (session->key->auth_info == NULL) 360 if (session->key->auth_info == NULL)