doxygen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24211 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -105,6 +105,17 @@ krb5_vwarn(krb5_context context, krb5_error_code code,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log a warning to the log, default stderr, include the error from
|
||||||
|
* the last failure.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context.
|
||||||
|
* @param code error code of the last error
|
||||||
|
* @param fmt message to print
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_warn(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
krb5_warn(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||||
__attribute__ ((format (printf, 3, 4)))
|
__attribute__ ((format (printf, 3, 4)))
|
||||||
@@ -120,6 +131,15 @@ krb5_vwarnx(krb5_context context, const char *fmt, va_list ap)
|
|||||||
return _warnerr(context, 0, 0, 1, fmt, ap);
|
return _warnerr(context, 0, 0, 1, fmt, ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log a warning to the log, default stderr.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context.
|
||||||
|
* @param fmt message to print
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_warnx(krb5_context context, const char *fmt, ...)
|
krb5_warnx(krb5_context context, const char *fmt, ...)
|
||||||
__attribute__ ((format (printf, 2, 3)))
|
__attribute__ ((format (printf, 2, 3)))
|
||||||
@@ -137,6 +157,17 @@ krb5_verr(krb5_context context, int eval, krb5_error_code code,
|
|||||||
exit(eval);
|
exit(eval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log a warning to the log, default stderr, include bthe error from
|
||||||
|
* the last failure and then exit.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context
|
||||||
|
* @param eval the exit code to exit with
|
||||||
|
* @param code error code of the last error
|
||||||
|
* @param fmt message to print
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_err(krb5_context context, int eval, krb5_error_code code,
|
krb5_err(krb5_context context, int eval, krb5_error_code code,
|
||||||
@@ -155,6 +186,16 @@ krb5_verrx(krb5_context context, int eval, const char *fmt, va_list ap)
|
|||||||
exit(eval);
|
exit(eval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log a warning to the log, default stderr, and then exit.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context
|
||||||
|
* @param eval the exit code to exit with
|
||||||
|
* @param fmt message to print
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_errx(krb5_context context, int eval, const char *fmt, ...)
|
krb5_errx(krb5_context context, int eval, const char *fmt, ...)
|
||||||
__attribute__ ((noreturn, format (printf, 3, 4)))
|
__attribute__ ((noreturn, format (printf, 3, 4)))
|
||||||
@@ -173,6 +214,17 @@ krb5_vabort(krb5_context context, krb5_error_code code,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log a warning to the log, default stderr, include bthe error from
|
||||||
|
* the last failure and then abort.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context
|
||||||
|
* @param code error code of the last error
|
||||||
|
* @param fmt message to print
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_abort(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
krb5_abort(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||||
__attribute__ ((noreturn, format (printf, 3, 4)))
|
__attribute__ ((noreturn, format (printf, 3, 4)))
|
||||||
@@ -189,6 +241,16 @@ krb5_vabortx(krb5_context context, const char *fmt, va_list ap)
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log a warning to the log, default stderr, and then abort.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context
|
||||||
|
* @param code error code of the last error
|
||||||
|
* @param fmt message to print
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_abortx(krb5_context context, const char *fmt, ...)
|
krb5_abortx(krb5_context context, const char *fmt, ...)
|
||||||
__attribute__ ((noreturn, format (printf, 2, 3)))
|
__attribute__ ((noreturn, format (printf, 2, 3)))
|
||||||
@@ -197,6 +259,15 @@ krb5_abortx(krb5_context context, const char *fmt, ...)
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the default logging facility.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context
|
||||||
|
* @param fac Facility to use for logging.
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_set_warn_dest(krb5_context context, krb5_log_facility *fac)
|
krb5_set_warn_dest(krb5_context context, krb5_log_facility *fac)
|
||||||
{
|
{
|
||||||
@@ -204,6 +275,14 @@ krb5_set_warn_dest(krb5_context context, krb5_log_facility *fac)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the default logging facility.
|
||||||
|
*
|
||||||
|
* @param context A Kerberos 5 context
|
||||||
|
*
|
||||||
|
* @ingroup krb5_error
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_log_facility * KRB5_LIB_FUNCTION
|
krb5_log_facility * KRB5_LIB_FUNCTION
|
||||||
krb5_get_warn_dest(krb5_context context)
|
krb5_get_warn_dest(krb5_context context)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user