add _krb5_have_debug

This commit is contained in:
Love Hornquist Astrand
2009-11-22 00:14:33 -08:00
parent 857b6f4172
commit 926583be1e

View File

@@ -3,6 +3,8 @@
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Portions Copyright (c) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -504,3 +506,11 @@ _krb5_debug(krb5_context context,
krb5_vlog(context, context->debug_dest, level, fmt, ap);
va_end(ap);
}
krb5_boolean KRB5_LIB_FUNCTION
_krb5_have_debug(krb5_context context, int level)
{
if (context == NULL || context->debug_dest == NULL)
return 0 ;
return 1;
}