~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/lib/krb5/krb5_libinit.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman, Russ Allbery, Sam Hartman
  • Date: 2008-08-21 10:41:41 UTC
  • mfrom: (11.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080821104141-a0f9c4o4cpo8xd0o
Tags: 1.6.dfsg.4~beta1-4
[ Russ Allbery ]
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #487669, #491774)
  - Italian, thanks Luca Monducci.  (Closes: #493962)

[ Sam Hartman ]
* Translation Updates:
    - Dutch, Thanks Vincent Zweije, Closes: #495733

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
    int err;
33
33
 
 
34
    krb5int_set_error_info_callout_fn (error_message);
 
35
 
 
36
#ifdef SHOW_INITFINI_FUNCS
 
37
    printf("krb5int_lib_init\n");
 
38
#endif
 
39
 
34
40
#if !USE_BUNDLE_ERROR_STRINGS
35
41
    add_error_table(&et_krb5_error_table);
36
42
    add_error_table(&et_kv5m_error_table);
51
57
    err = k5_mutex_finish_init(&krb5int_us_time_mutex);
52
58
    if (err)
53
59
        return err;
 
60
 
54
61
    return 0;
55
62
}
56
63
 
66
73
 
67
74
void krb5int_lib_fini(void)
68
75
{
69
 
    if (!INITIALIZER_RAN(krb5int_lib_init) || PROGRAM_EXITING())
 
76
    if (!INITIALIZER_RAN(krb5int_lib_init) || PROGRAM_EXITING()) {
 
77
#ifdef SHOW_INITFINI_FUNCS
 
78
        printf("krb5int_lib_fini: skipping\n");
 
79
#endif
70
80
        return;
 
81
    }
 
82
 
 
83
#ifdef SHOW_INITFINI_FUNCS
 
84
    printf("krb5int_lib_fini\n");
 
85
#endif
71
86
 
72
87
    k5_mutex_destroy(&krb5int_us_time_mutex);
73
88
 
86
101
    remove_error_table(&et_asn1_error_table);
87
102
    remove_error_table(&et_k524_error_table);
88
103
#endif
 
104
    krb5int_set_error_info_callout_fn (0);
89
105
}
90
106
 
91
107
/* Still exists because it went into the export list on Windows.  But