From 926583be1ef9c55d52d5ec6dcfa5b562ddf42858 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 22 Nov 2009 00:14:33 -0800 Subject: [PATCH] add _krb5_have_debug --- lib/krb5/log.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/krb5/log.c b/lib/krb5/log.c index 9f8146097..ac1cb2b2b 100644 --- a/lib/krb5/log.c +++ b/lib/krb5/log.c @@ -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; +}