aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/gnutls.h
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/gnutls.h
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/gnutls.h')
-rw-r--r--src/daemon/https/gnutls.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/daemon/https/gnutls.h b/src/daemon/https/gnutls.h
index c7383ef3..9220905f 100644
--- a/src/daemon/https/gnutls.h
+++ b/src/daemon/https/gnutls.h
@@ -233,40 +233,40 @@ extern "C"
233 int MHD_gnutls_alert_send_appropriate (mhd_gtls_session_t session, int err); 233 int MHD_gnutls_alert_send_appropriate (mhd_gtls_session_t session, int err);
234 const char * MHD_gnutls_alert_get_name (gnutls_alert_description_t alert); 234 const char * MHD_gnutls_alert_get_name (gnutls_alert_description_t alert);
235 235
236// gnutls_cipher_algorithm_t gnutls_cipher_get (mhd_gtls_session_t session); 236// enum MHD_GNUTLS_CipherAlgorithm gnutls_cipher_get (mhd_gtls_session_t session);
237// gnutls_kx_algorithm_t gnutls_kx_get (mhd_gtls_session_t session); 237// enum MHD_GNUTLS_KeyExchangeAlgorithm gnutls_kx_get (mhd_gtls_session_t session);
238// gnutls_mac_algorithm_t gnutls_mac_get (mhd_gtls_session_t session); 238// enum MHD_GNUTLS_HashAlgorithm gnutls_mac_get (mhd_gtls_session_t session);
239// gnutls_compression_method_t gnutls_compression_get (mhd_gtls_session_t 239// enum MHD_GNUTLS_CompressionMethod gnutls_compression_get (mhd_gtls_session_t
240// session); 240// session);
241// gnutls_certificate_type_t gnutls_certificate_type_get (mhd_gtls_session_t 241// enum MHD_GNUTLS_CertificateType gnutls_certificate_type_get (mhd_gtls_session_t
242// session); 242// session);
243 243
244 size_t MHD_gnutls_cipher_get_key_size (gnutls_cipher_algorithm_t algorithm); 244 size_t MHD_gnutls_cipher_get_key_size (enum MHD_GNUTLS_CipherAlgorithm algorithm);
245 size_t MHD_gnutls_mac_get_key_size (gnutls_mac_algorithm_t algorithm); 245 size_t MHD_gnutls_mac_get_key_size (enum MHD_GNUTLS_HashAlgorithm algorithm);
246 246
247/* the name of the specified algorithms */ 247/* the name of the specified algorithms */
248 const char * MHD_gnutls_cipher_get_name (gnutls_cipher_algorithm_t algorithm); 248 const char * MHD_gnutls_cipher_get_name (enum MHD_GNUTLS_CipherAlgorithm algorithm);
249 const char * MHD_gnutls_mac_get_name (gnutls_mac_algorithm_t algorithm); 249 const char * MHD_gnutls_mac_get_name (enum MHD_GNUTLS_HashAlgorithm algorithm);
250 const char * MHD_gnutls_compression_get_name (gnutls_compression_method_t 250 const char * MHD_gnutls_compression_get_name (enum MHD_GNUTLS_CompressionMethod
251 algorithm); 251 algorithm);
252 const char * MHD_gnutls_kx_get_name (gnutls_kx_algorithm_t algorithm); 252 const char * MHD_gnutls_kx_get_name (enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm);
253 const char * MHD_gnutls_certificate_type_get_name (gnutls_certificate_type_t 253 const char * MHD_gnutls_certificate_type_get_name (enum MHD_GNUTLS_CertificateType
254 type); 254 type);
255 255
256 gnutls_mac_algorithm_t MHD_gtls_mac_get_id (const char *name); 256 enum MHD_GNUTLS_HashAlgorithm MHD_gtls_mac_get_id (const char *name);
257 gnutls_compression_method_t MHD_gtls_compression_get_id (const char *name); 257 enum MHD_GNUTLS_CompressionMethod MHD_gtls_compression_get_id (const char *name);
258 gnutls_cipher_algorithm_t MHD_gtls_cipher_get_id (const char *name); 258 enum MHD_GNUTLS_CipherAlgorithm MHD_gtls_cipher_get_id (const char *name);
259 gnutls_kx_algorithm_t MHD_gtls_kx_get_id (const char *name); 259 enum MHD_GNUTLS_KeyExchangeAlgorithm MHD_gtls_kx_get_id (const char *name);
260 gnutls_protocol_t MHD_gtls_protocol_get_id (const char *name); 260 enum MHD_GNUTLS_Protocol MHD_gtls_protocol_get_id (const char *name);
261 gnutls_certificate_type_t MHD_gtls_certificate_type_get_id (const char *name); 261 enum MHD_GNUTLS_CertificateType MHD_gtls_certificate_type_get_id (const char *name);
262 262
263 /* list supported algorithms */ 263 /* list supported algorithms */
264 const gnutls_cipher_algorithm_t * MHD_gtls_cipher_list (void); 264 const enum MHD_GNUTLS_CipherAlgorithm * MHD_gtls_cipher_list (void);
265 const gnutls_mac_algorithm_t * MHD_gtls_mac_list (void); 265 const enum MHD_GNUTLS_HashAlgorithm * MHD_gtls_mac_list (void);
266 const gnutls_compression_method_t * MHD_gtls_compression_list (void); 266 const enum MHD_GNUTLS_CompressionMethod * MHD_gtls_compression_list (void);
267 const gnutls_protocol_t * MHD_gtls_protocol_list (void); 267 const enum MHD_GNUTLS_Protocol * MHD_gtls_protocol_list (void);
268 const gnutls_certificate_type_t * MHD_gtls_certificate_type_list (void); 268 const enum MHD_GNUTLS_CertificateType * MHD_gtls_certificate_type_list (void);
269 const gnutls_kx_algorithm_t * MHD_gtls_kx_list (void); 269 const enum MHD_GNUTLS_KeyExchangeAlgorithm * MHD_gtls_kx_list (void);
270 270
271 /* error functions */ 271 /* error functions */
272 int MHD_gtls_error_is_fatal (int error); 272 int MHD_gtls_error_is_fatal (int error);
@@ -372,9 +372,9 @@ extern "C"
372 const char *priority, const char **err_pos); 372 const char *priority, const char **err_pos);
373 373
374/* get the currently used protocol version */ 374/* get the currently used protocol version */
375 gnutls_protocol_t MHD_gnutls_protocol_get_version (mhd_gtls_session_t session); 375 enum MHD_GNUTLS_Protocol MHD_gnutls_protocol_get_version (mhd_gtls_session_t session);
376 376
377 const char * MHD_gnutls_protocol_get_name (gnutls_protocol_t version); 377 const char * MHD_gnutls_protocol_get_name (enum MHD_GNUTLS_Protocol version);
378 378
379/* 379/*
380 * get/set session 380 * get/set session
@@ -415,7 +415,7 @@ extern "C"
415 * cred is a structure defined by the kx algorithm 415 * cred is a structure defined by the kx algorithm
416 */ 416 */
417 int MHD_gnutls_credentials_set (mhd_gtls_session_t session, 417 int MHD_gnutls_credentials_set (mhd_gtls_session_t session,
418 gnutls_credentials_type_t type, void *cred); 418 enum MHD_GNUTLS_CredentialsType type, void *cred);
419 419
420/* Credential structures - used in MHD_gnutls_credentials_set(); */ 420/* Credential structures - used in MHD_gnutls_credentials_set(); */
421 struct mhd_gtls_certificate_credentials_st; 421 struct mhd_gtls_certificate_credentials_st;
@@ -634,7 +634,7 @@ extern "C"
634/* 634/*
635 * this function returns the hash of the given data. 635 * this function returns the hash of the given data.
636 */ 636 */
637 int MHD_gnutls_fingerprint (gnutls_digest_algorithm_t algo, 637 int MHD_gnutls_fingerprint (enum MHD_GNUTLS_HashAlgorithm algo,
638 const gnutls_datum_t * data, void *result, 638 const gnutls_datum_t * data, void *result,
639 size_t * result_size); 639 size_t * result_size);
640 640
@@ -789,7 +789,7 @@ extern "C"
789 789
790 typedef struct gnutls_retr_st 790 typedef struct gnutls_retr_st
791 { 791 {
792 gnutls_certificate_type_t type; 792 enum MHD_GNUTLS_CertificateType type;
793 union cert 793 union cert
794 { 794 {
795 gnutls_x509_crt_t *x509; 795 gnutls_x509_crt_t *x509;
@@ -810,7 +810,7 @@ extern "C"
810 req_ca_rdn, 810 req_ca_rdn,
811 int nreqs, 811 int nreqs,
812 const 812 const
813 gnutls_pk_algorithm_t 813 enum MHD_GNUTLS_PublicKeyAlgorithm
814 * pk_algos, 814 * pk_algos,
815 int 815 int
816 pk_algos_length, 816 pk_algos_length,
@@ -822,10 +822,10 @@ extern "C"
822 /* 822 /*
823 * Functions that allow auth_info_t structures handling 823 * Functions that allow auth_info_t structures handling
824 */ 824 */
825 gnutls_credentials_type_t MHD_gtls_auth_get_type (mhd_gtls_session_t session); 825 enum MHD_GNUTLS_CredentialsType MHD_gtls_auth_get_type (mhd_gtls_session_t session);
826 gnutls_credentials_type_t 826 enum MHD_GNUTLS_CredentialsType
827 MHD_gtls_auth_server_get_type (mhd_gtls_session_t session); 827 MHD_gtls_auth_server_get_type (mhd_gtls_session_t session);
828 gnutls_credentials_type_t 828 enum MHD_GNUTLS_CredentialsType
829 MHD_gtls_auth_client_get_type (mhd_gtls_session_t session); 829 MHD_gtls_auth_client_get_type (mhd_gtls_session_t session);
830 830
831 /* 831 /*
@@ -852,7 +852,7 @@ extern "C"
852 /* External signing callback. Experimental. */ 852 /* External signing callback. Experimental. */
853 typedef int (*gnutls_sign_func) (mhd_gtls_session_t session, 853 typedef int (*gnutls_sign_func) (mhd_gtls_session_t session,
854 void *userdata, 854 void *userdata,
855 gnutls_certificate_type_t cert_type, 855 enum MHD_GNUTLS_CertificateType cert_type,
856 const gnutls_datum_t * cert, 856 const gnutls_datum_t * cert,
857 const gnutls_datum_t * hash, 857 const gnutls_datum_t * hash,
858 gnutls_datum_t * signature); 858 gnutls_datum_t * signature);