Rename subsystem_DEPRECATED to subsystem_DEPRECATED_FUNCTION(X)
Start to explain what the replacement function is. Generate the #define/#undef logic in generated header files. Use gcc style where the deprecation warning is after the prototype.
This commit is contained in:
@@ -31,8 +31,6 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#define KRB5_DEPRECATED
|
||||
|
||||
#include "krb5_locl.h"
|
||||
#include "krb5-v4compat.h"
|
||||
|
||||
@@ -54,11 +52,11 @@
|
||||
* @ingroup krb5_v4compat
|
||||
*/
|
||||
|
||||
KRB5_DEPRECATED
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb524_convert_creds_kdc(krb5_context context,
|
||||
krb5_creds *in_cred,
|
||||
struct credentials *v4creds)
|
||||
KRB5_DEPRECATED_FUNCTION("Use X instead")
|
||||
{
|
||||
memset(v4creds, 0, sizeof(*v4creds));
|
||||
krb5_set_error_message(context, EINVAL,
|
||||
@@ -81,12 +79,12 @@ krb524_convert_creds_kdc(krb5_context context,
|
||||
* @ingroup krb5_v4compat
|
||||
*/
|
||||
|
||||
KRB5_DEPRECATED
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb524_convert_creds_kdc_ccache(krb5_context context,
|
||||
krb5_ccache ccache,
|
||||
krb5_creds *in_cred,
|
||||
struct credentials *v4creds)
|
||||
KRB5_DEPRECATED_FUNCTION("Use X instead")
|
||||
{
|
||||
memset(v4creds, 0, sizeof(*v4creds));
|
||||
krb5_set_error_message(context, EINVAL,
|
||||
|
Reference in New Issue
Block a user