~ubuntu-branches/ubuntu/intrepid/gnutls26/intrepid-security

« back to all changes in this revision

Viewing changes to includes/gnutls/compat.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2008-05-01 13:09:49 UTC
  • Revision ID: james.westby@ubuntu.com-20080501130949-qsbsi06stso6a0ij
Tags: upstream-2.2.3~rc
ImportĀ upstreamĀ versionĀ 2.2.3~rc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Typedefs to be fully compatible with the types of
 
2
 * GnuTLS 1.0.x.
 
3
 */
 
4
 
 
5
#ifndef GCOMPAT_H
 
6
# define GCOMPAT_H
 
7
 
 
8
#ifdef __GNUC__
 
9
 
 
10
#define _GNUTLS_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)  
 
11
 
 
12
#if _GNUTLS_GCC_VERSION >= 30100
 
13
#define _GNUTLS_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
 
14
#endif
 
15
 
 
16
#endif /* __GNUC__ */
 
17
 
 
18
#ifndef _GNUTLS_GCC_ATTR_DEPRECATED
 
19
#define _GNUTLS_GCC_ATTR_DEPRECATED
 
20
#endif
 
21
 
 
22
#define gnutls_cipher_algorithm gnutls_cipher_algorithm_t
 
23
#define gnutls_kx_algorithm gnutls_kx_algorithm_t
 
24
#define gnutls_paramsype gnutls_paramsype_t
 
25
#define gnutls_mac_algorithm gnutls_mac_algorithm_t
 
26
#define gnutls_digest_algorithm gnutls_digest_algorithm_t
 
27
#define gnutls_compression_method gnutls_compression_method_t
 
28
#define gnutls_connection_end gnutls_connection_end_t
 
29
#define gnutls_credentialsype gnutls_credentialsype_t
 
30
#define gnutls_certificateype gnutls_certificateype_t
 
31
#define gnutls_x509_crt_fmt gnutls_x509_crt_fmt_t
 
32
#define gnutls_openpgp_key_fmt gnutls_openpgp_key_fmt_t
 
33
#define gnutls_pk_algorithm gnutls_pk_algorithm_t
 
34
#define gnutls_sign_algorithm gnutls_sign_algorithm_t
 
35
#define gnutls_server_name gnutls_server_nameype_t
 
36
#define gnutls_protocol gnutls_protocol_version_t
 
37
#define gnutls_close_request gnutls_close_request_t
 
38
#define gnutls_openpgp_key_status gnutls_openpgp_key_status_t
 
39
#define gnutls_certificate_request gnutls_certificate_request_t
 
40
#define gnutls_certificate_status gnutls_certificate_status_t
 
41
#define gnutls_session gnutls_session_t
 
42
#define gnutls_alert_level gnutls_alert_level_t
 
43
#define gnutls_alert_description gnutls_alert_description_t
 
44
#define gnutls_x509_subject_alt_name gnutls_x509_subject_alt_name_t
 
45
#define gnutls_openpgp_key gnutls_openpgp_key_t
 
46
#define gnutls_openpgp_privkey gnutls_openpgp_privkey_t
 
47
#define gnutls_openpgp_keyring gnutls_openpgp_keyring_t
 
48
#define gnutls_x509_crt gnutls_x509_crt_t
 
49
#define gnutls_x509_privkey gnutls_x509_privkey_t
 
50
#define gnutls_x509_crl gnutls_x509_crl_t
 
51
#define gnutls_pkcs7 gnutls_pkcs7_t
 
52
#define gnutls_x509_crq gnutls_x509_crq_t
 
53
#define gnutls_pkcs_encrypt_flags gnutls_pkcs_encrypt_flags_t
 
54
#define gnutls_pkcs12_bag_type gnutls_pkcs12_bag_type_t
 
55
#define gnutls_pkcs12_bag gnutls_pkcs12_bag_t
 
56
#define gnutls_pkcs12 gnutls_pkcs12_t
 
57
#define gnutls_certificate_credentials gnutls_certificate_credentials_t
 
58
#define gnutls_anon_server_credentials gnutls_anon_server_credentials_t
 
59
#define gnutls_anon_client_credentials gnutls_anon_client_credentials_t
 
60
#define gnutls_srp_client_credentials gnutls_srp_client_credentials_t
 
61
#define gnutls_srp_server_credentials gnutls_srp_server_credentials_t
 
62
#define gnutls_dh_params gnutls_dh_params_t
 
63
#define gnutls_rsa_params gnutls_rsa_params_t
 
64
#define gnutls_params_type gnutls_params_type_t
 
65
#define gnutls_credentials_type gnutls_credentials_type_t
 
66
#define gnutls_certificate_type gnutls_certificate_type_t
 
67
#define gnutls_datum gnutls_datum_t
 
68
#define gnutls_transport_ptr gnutls_transport_ptr_t
 
69
 
 
70
/* Old SRP alerts removed in 2.1.x because the TLS-SRP RFC was
 
71
   modified to use the PSK alert. */
 
72
#define GNUTLS_A_MISSING_SRP_USERNAME GNUTLS_A_UNKNOWN_PSK_IDENTITY
 
73
#define GNUTLS_A_UNKNOWN_SRP_USERNAME GNUTLS_A_UNKNOWN_PSK_IDENTITY
 
74
 
 
75
/* OpenPGP stuff renamed in 2.1.x. */
 
76
#define gnutls_openpgp_key_fmt_t gnutls_openpgp_crt_fmt_t
 
77
#define GNUTLS_OPENPGP_KEY GNUTLS_OPENPGP_CERT
 
78
#define GNUTLS_OPENPGP_KEY_FINGERPRINT GNUTLS_OPENPGP_CERT_FINGERPRINT
 
79
#define gnutls_openpgp_send_key gnutls_openpgp_send_cert
 
80
#define gnutls_openpgp_key_status_t gnutls_openpgp_crt_status_t
 
81
#define gnutls_openpgp_key_t gnutls_openpgp_crt_t
 
82
#define gnutls_openpgp_key_init gnutls_openpgp_crt_init
 
83
#define gnutls_openpgp_key_deinit gnutls_openpgp_crt_deinit
 
84
#define gnutls_openpgp_key_import gnutls_openpgp_crt_import
 
85
#define gnutls_openpgp_key_export gnutls_openpgp_crt_export
 
86
#define gnutls_openpgp_key_get_key_usage gnutls_openpgp_crt_get_key_usage
 
87
#define gnutls_openpgp_key_get_fingerprint gnutls_openpgp_crt_get_fingerprint
 
88
#define gnutls_openpgp_key_get_pk_algorithm gnutls_openpgp_crt_get_pk_algorithm
 
89
#define gnutls_openpgp_key_get_name gnutls_openpgp_crt_get_name
 
90
#define gnutls_openpgp_key_get_version gnutls_openpgp_crt_get_version
 
91
#define gnutls_openpgp_key_get_creation_time gnutls_openpgp_crt_get_creation_time
 
92
#define gnutls_openpgp_key_get_expiration_time gnutls_openpgp_crt_get_expiration_time
 
93
#define gnutls_openpgp_key_get_id gnutls_openpgp_crt_get_id
 
94
#define gnutls_openpgp_key_check_hostname gnutls_openpgp_crt_check_hostname
 
95
 
 
96
#endif /* GCOMPAT_H */