keyhole logo

Functions

Heimdal Kerberos 5 error reporting functions

Functions

KRB5_LIB_FUNCTION
krb5_error_code KRB5_LIB_CALL 
krb5_eai_to_heim_errno (int eai_errno, int system_error)
KRB5_LIB_FUNCTION
krb5_error_code KRB5_LIB_CALL 
krb5_h_errno_to_heim_errno (int eai_errno)
KRB5_LIB_FUNCTION void
KRB5_LIB_CALL 
krb5_clear_error_message (krb5_context context)
KRB5_LIB_FUNCTION void
KRB5_LIB_CALL 
krb5_set_error_message (krb5_context context, krb5_error_code ret, const char *fmt,...) __attribute__((format(printf
KRB5_LIB_FUNCTION
krb5_error_code KRB5_LIB_CALL 
krb5_vwarn (krb5_context context, krb5_error_code code, const char *fmt, va_list ap) __attribute__((format(printf

Function Documentation

KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_clear_error_message ( krb5_context  context )

Clears the error message from the Kerberos 5 context.

Parameters:
contextThe Kerberos 5 context to clear
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_eai_to_heim_errno ( int  eai_errno,
int  system_error 
)

Convert the getaddrinfo() error code to a Kerberos et error code.

Parameters:
eai_errnocontains the error code from getaddrinfo().
system_errorshould have the value of errno after the failed getaddrinfo().
Returns:
Kerberos error code representing the EAI errors.
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_h_errno_to_heim_errno ( int  eai_errno )

Convert the gethostname() error code (h_error) to a Kerberos et error code.

Parameters:
eai_errnocontains the error code from gethostname().
Returns:
Kerberos error code representing the gethostname errors.
KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_set_error_message ( krb5_context  context,
krb5_error_code  ret,
const char *  fmt,
  ... 
)

Set the context full error string for a specific error code. The error that is stored should be internationalized.

The if context is NULL, no error string is stored.

Parameters:
contextKerberos 5 context
retThe error code
fmtError string for the error code
...printf(3) style parameters.
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_vwarn ( krb5_context  context,
krb5_error_code  code,
const char *  fmt,
va_list  ap 
)

Log a warning to the log, default stderr, include the error from the last failure.

Parameters:
contextA Kerberos 5 context.
codeerror code of the last error
fmtmessage to print
aparguments

Generated on Fri Dec 6 2013 08:15:58 for HeimdalKerberos5library by doxygen 1.7.2