~ubuntu-branches/ubuntu/precise/krb5/precise-updates

« back to all changes in this revision

Viewing changes to src/kdc/kdc_authdata.c

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2011-12-01 19:34:41 UTC
  • mfrom: (28.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20111201193441-9tipg3aru1jsidyv
Tags: 1.10+dfsg~alpha1-6
* Fix segfault with unknown hostnames in krb5_sname_to_principal,
  Closes: #650671
* Indicate that this library breaks libsmbclient versions that depend on
  krb5_locate_kdc, Closes: #650603, #650611

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
 
2
/* kdc/kdc_authdata.c - Authorization data routines for the KDC */
2
3
/*
3
 
 * kdc/kdc_authdata.c
4
 
 *
5
4
 * Copyright (C) 2007 Apple Inc.  All Rights Reserved.
6
5
 * Copyright (C) 2008, 2009 by the Massachusetts Institute of Technology.
7
6
 *
23
22
 * M.I.T. makes no representations about the suitability of
24
23
 * this software for any purpose.  It is provided "as is" without express
25
24
 * or implied warranty.
26
 
 *
27
 
 * AuthorizationData routines for the KDC.
28
25
 */
29
26
 
30
27
#include "k5-int.h"
291
288
                ((initerr = (*server_init_proc)(context, &pctx)) != 0)) {
292
289
                const char *emsg;
293
290
                emsg = krb5_get_error_message(context, initerr);
294
 
                if (emsg) {
295
 
                    krb5_klog_syslog(LOG_ERR,
296
 
                                     "authdata %s failed to initialize: %s",
297
 
                                     ftable->name, emsg);
298
 
                    krb5_free_error_message(context, emsg);
299
 
                }
 
291
                krb5_klog_syslog(LOG_ERR,
 
292
                                 _("authdata %s failed to initialize: %s"),
 
293
                                 ftable->name, emsg);
 
294
                krb5_free_error_message(context, emsg);
300
295
                memset(&authdata_systems[k], 0, sizeof(authdata_systems[k]));
301
296
 
302
297
                continue;
329
324
                ((initerr = (*server_init_proc)(context, &pctx)) != 0)) {
330
325
                const char *emsg;
331
326
                emsg = krb5_get_error_message(context, initerr);
332
 
                if (emsg) {
333
 
                    krb5_klog_syslog(LOG_ERR,
334
 
                                     "authdata %s failed to initialize: %s",
335
 
                                     ftable->name, emsg);
336
 
                    krb5_free_error_message(context, emsg);
337
 
                }
 
327
                krb5_klog_syslog(LOG_ERR,
 
328
                                 _("authdata %s failed to initialize: %s"),
 
329
                                 ftable->name, emsg);
 
330
                krb5_free_error_message(context, emsg);
338
331
                memset(&authdata_systems[k], 0, sizeof(authdata_systems[k]));
339
332
 
340
333
                continue;
789
782
            const char *emsg;
790
783
 
791
784
            emsg = krb5_get_error_message (context, code);
792
 
            krb5_klog_syslog (LOG_INFO,
793
 
                              "authdata (%s) handling failure: %s",
794
 
                              asys->name, emsg);
 
785
            krb5_klog_syslog(LOG_INFO, _("authdata (%s) handling failure: %s"),
 
786
                             asys->name, emsg);
795
787
            krb5_free_error_message (context, emsg);
796
788
 
797
789
            if (asys->flags & AUTHDATA_FLAG_CRITICAL)
910
902
    *pdelegated = NULL;
911
903
    *path_is_signed = FALSE;
912
904
 
913
 
    code = krb5int_find_authdata(context,
914
 
                                 enc_tkt_part->authorization_data,
915
 
                                 NULL,
916
 
                                 KRB5_AUTHDATA_SIGNTICKET,
917
 
                                 &sp_authdata);
 
905
    code = krb5_find_authdata(context, enc_tkt_part->authorization_data, NULL,
 
906
                              KRB5_AUTHDATA_SIGNTICKET, &sp_authdata);
918
907
    if (code != 0)
919
908
        goto cleanup;
920
909