Deleted Added
full compact
context.c (120945) context.c (142403)
1/*
2 * Copyright (c) 1997 - 2002 Kungliga Tekniska H�gskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include "krb5_locl.h"
35#include <com_err.h>
36
1/*
2 * Copyright (c) 1997 - 2002 Kungliga Tekniska H�gskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include "krb5_locl.h"
35#include <com_err.h>
36
37RCSID("$Id: context.c,v 1.83 2003/03/10 00:24:13 lha Exp $");
37RCSID("$Id: context.c,v 1.83.2.1 2004/08/20 15:30:24 lha Exp $");
38
39#define INIT_FIELD(C, T, E, D, F) \
40 (C)->E = krb5_config_get_ ## T ## _default ((C), NULL, (D), \
41 "libdefaults", F, NULL)
42
43/*
44 * Set the list of etypes `ret_etypes' from the configuration variable
45 * `name'

--- 364 unchanged lines hidden (view full) ---

410const char *
411krb5_get_err_text(krb5_context context, krb5_error_code code)
412{
413 const char *p = NULL;
414 if(context != NULL)
415 p = com_right(context->et_list, code);
416 if(p == NULL)
417 p = strerror(code);
38
39#define INIT_FIELD(C, T, E, D, F) \
40 (C)->E = krb5_config_get_ ## T ## _default ((C), NULL, (D), \
41 "libdefaults", F, NULL)
42
43/*
44 * Set the list of etypes `ret_etypes' from the configuration variable
45 * `name'

--- 364 unchanged lines hidden (view full) ---

410const char *
411krb5_get_err_text(krb5_context context, krb5_error_code code)
412{
413 const char *p = NULL;
414 if(context != NULL)
415 p = com_right(context->et_list, code);
416 if(p == NULL)
417 p = strerror(code);
418 if (p == NULL)
419 p = "Unknown error";
418 return p;
419}
420
421void
422krb5_init_ets(krb5_context context)
423{
424 if(context->et_list == NULL){
425 krb5_add_et_list(context, initialize_krb5_error_table_r);

--- 118 unchanged lines hidden ---
420 return p;
421}
422
423void
424krb5_init_ets(krb5_context context)
425{
426 if(context->et_list == NULL){
427 krb5_add_et_list(context, initialize_krb5_error_table_r);

--- 118 unchanged lines hidden ---