summaryrefslogtreecommitdiffstats
path: root/src/include/krb5
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-08-27 23:31:33 +0000
committerKen Raeburn <raeburn@mit.edu>2007-08-27 23:31:33 +0000
commitfe537438e1448af8020a1edcfe954e338acf4332 (patch)
treeff35efa2bcdea9ff32cb6160fe6bdbd7e9857db9 /src/include/krb5
parentd70ddfee4fc58b5b51a982973ce1b74b0cae92f9 (diff)
downloadkrb5-fe537438e1448af8020a1edcfe954e338acf4332.tar.gz
krb5-fe537438e1448af8020a1edcfe954e338acf4332.tar.xz
krb5-fe537438e1448af8020a1edcfe954e338acf4332.zip
Define KRB5_ATTR_DEPRECATED (and undef at end of file) and attach it
to the function declarations enabled by KRB5_DEPRECATED. Definition depends on having GCC version 3.2.3 or later. (Earlier versions may have supported it, but that's what I found docs for. Windows compiler support coming later, based on Jeff's suggestions.) ticket: 2836 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19887 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5')
-rw-r--r--src/include/krb5/krb5.hin22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin
index ea5d0fcbb..c7327df8d 100644
--- a/src/include/krb5/krb5.hin
+++ b/src/include/krb5/krb5.hin
@@ -109,6 +109,12 @@ KRB5INT_BEGIN_DECLS
# pragma pack(push,2)
#endif
+#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 30203
+# define KRB5_ATTR_DEPRECATED __attribute__((deprecated))
+#else
+# define KRB5_ATTR_DEPRECATED
+#endif
+
/* from profile.h */
struct _profile_t;
/* typedef struct _profile_t *profile_t; */
@@ -1707,7 +1713,7 @@ krb5_get_profile
(krb5_context, struct _profile_t * /* profile_t */ *);
#if KRB5_DEPRECATED
-krb5_error_code KRB5_CALLCONV krb5_get_in_tkt
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt
(krb5_context,
krb5_flags,
krb5_address * const *,
@@ -1728,7 +1734,7 @@ krb5_error_code KRB5_CALLCONV krb5_get_in_tkt
krb5_ccache,
krb5_kdc_rep ** );
-krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_password
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_password
(krb5_context,
krb5_flags,
krb5_address * const *,
@@ -1739,7 +1745,7 @@ krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_password
krb5_creds *,
krb5_kdc_rep ** );
-krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_skey
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_skey
(krb5_context,
krb5_flags,
krb5_address * const *,
@@ -1750,7 +1756,7 @@ krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_skey
krb5_creds *,
krb5_kdc_rep ** );
-krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_keytab
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_keytab
(krb5_context,
krb5_flags,
krb5_address * const *,
@@ -1923,12 +1929,12 @@ krb5_error_code KRB5_CALLCONV krb5_auth_con_setrecvsubkey(
krb5_context, krb5_auth_context, krb5_keyblock *);
#if KRB5_DEPRECATED
-krb5_error_code KRB5_CALLCONV krb5_auth_con_getlocalsubkey
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_auth_con_getlocalsubkey
(krb5_context,
krb5_auth_context,
krb5_keyblock **);
-krb5_error_code KRB5_CALLCONV krb5_auth_con_getremotesubkey
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_auth_con_getremotesubkey
(krb5_context,
krb5_auth_context,
krb5_keyblock **);
@@ -1945,7 +1951,7 @@ krb5_error_code KRB5_CALLCONV krb5_auth_con_getremoteseqnumber
krb5_int32 *);
#if KRB5_DEPRECATED
-krb5_error_code KRB5_CALLCONV krb5_auth_con_initivector
+KRB5_ATTR_DEPRECATED krb5_error_code KRB5_CALLCONV krb5_auth_con_initivector
(krb5_context,
krb5_auth_context);
#endif
@@ -2314,4 +2320,6 @@ KRB5INT_END_DECLS
applications from breaking right away. */
#define krb5_const const
+#undef KRB5_ATTR_DEPRECATED
+
#endif /* KRB5_GENERAL__ */