~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
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include "autoconf.h"
4
4
#include "com_err.h"
5
5
#include "k5-int.h"
6
 
#include "krb5_err.h"
7
 
#include "kv5m_err.h"
8
 
#include "asn1_err.h"
9
 
#include "kdb5_err.h"
10
6
 
11
7
#if defined(_WIN32) || defined(USE_CCAPI)
12
8
#include "stdcc.h"
37
33
    printf("krb5int_lib_init\n");
38
34
#endif
39
35
 
40
 
#if !USE_BUNDLE_ERROR_STRINGS
41
36
    add_error_table(&et_krb5_error_table);
42
37
    add_error_table(&et_kv5m_error_table);
43
38
    add_error_table(&et_kdb5_error_table);
44
39
    add_error_table(&et_asn1_error_table);
45
40
    add_error_table(&et_k524_error_table);
46
 
#endif
47
41
 
48
42
    err = krb5int_rc_finish_init();
49
43
    if (err)
50
44
        return err;
 
45
#ifndef LEAN_CLIENT
51
46
    err = krb5int_kt_initialize();
52
47
    if (err)
53
48
        return err;
 
49
#endif /* LEAN_CLIENT */
54
50
    err = krb5int_cc_initialize();
55
51
    if (err)
56
52
        return err;
87
83
    k5_mutex_destroy(&krb5int_us_time_mutex);
88
84
 
89
85
    krb5int_cc_finalize();
 
86
#ifndef LEAN_CLIENT
90
87
    krb5int_kt_finalize();
 
88
#endif /* LEAN_CLIENT */
91
89
    krb5int_rc_terminate();
92
90
 
93
91
#if defined(_WIN32) || defined(USE_CCAPI)
94
92
    krb5_stdcc_shutdown();
95
93
#endif
96
94
 
97
 
#if !USE_BUNDLE_ERROR_STRINGS
98
95
    remove_error_table(&et_krb5_error_table);
99
96
    remove_error_table(&et_kv5m_error_table);
100
97
    remove_error_table(&et_kdb5_error_table);
101
98
    remove_error_table(&et_asn1_error_table);
102
99
    remove_error_table(&et_k524_error_table);
103
 
#endif
 
100
 
104
101
    krb5int_set_error_info_callout_fn (0);
105
102
}
106
103