diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-08-24 17:53:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-08-24 17:53:48 +0000 |
commit | 46622f6b02b8ac3138cd2ef57fc8b1a5e7d893fd (patch) | |
tree | 1212af95cfd01578229f9ae3a4b259dcdee2da0b /src/daemon/https/tls/gnutls_auth.c | |
parent | bb5fc0ba651bafc59a429853eb965518d436d82a (diff) | |
download | libmicrohttpd-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.c | 14 |
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 | **/ |
92 | int | 92 | int |
93 | MHD_gnutls_credentials_set (mhd_gtls_session_t session, | 93 | MHD_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 | **/ |
163 | gnutls_credentials_type_t | 163 | enum MHD_GNUTLS_CredentialsType |
164 | MHD_gtls_auth_get_type (mhd_gtls_session_t session) | 164 | MHD_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 | **/ |
186 | gnutls_credentials_type_t | 186 | enum MHD_GNUTLS_CredentialsType |
187 | MHD_gtls_auth_server_get_type (mhd_gtls_session_t session) | 187 | MHD_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 | **/ |
204 | gnutls_credentials_type_t | 204 | enum MHD_GNUTLS_CredentialsType |
205 | MHD_gtls_auth_client_get_type (mhd_gtls_session_t session) | 205 | MHD_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 | */ |
218 | const void * | 218 | const void * |
219 | mhd_gtls_get_kx_cred (mhd_gtls_session_t session, | 219 | mhd_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 | ||
228 | const void * | 228 | const void * |
229 | mhd_gtls_get_cred (mhd_gtls_key_st key, gnutls_credentials_type_t type, int *err) | 229 | mhd_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 | */ |
355 | int | 355 | int |
356 | mhd_gtls_auth_info_set (mhd_gtls_session_t session, | 356 | mhd_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) |