~ubuntu-branches/ubuntu/maverick/bind9/maverick

« back to all changes in this revision

Viewing changes to bin/named/tkeyconf.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, LaMont Jones, Internet Software Consortium, Inc, localization folks
  • Date: 2008-08-02 14:20:20 UTC
  • mfrom: (1.2.1 upstream) (6.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802142020-l1hon9jy8lbbjxmg
[LaMont Jones]

* default to using resolvconf if it is installed
* fix sonames and dependencies.  Closes: #149259, #492418
* Do not build-depend libcap2-dev on non-linux.  Closes: #493392
* drop unused query-loc manpage.  Closes: #492564
* lwresd: Deliver /etc/bind directory.  Closes: #490027
* fix query-source comment in default install

[Internet Software Consortium, Inc]

* 9.5.0-P2.  Closes: #492949

[localization folks]

* l10n: Spanish debconf translation.  Closes: #492425 (Ignacio Mondino)
* l10n: Swedish debconf templates.  Closes: #491369 (Martin Ågren)
* l10n: Japanese debconf translations.  Closes: #492048 (Hideki Yamane
  (Debian-JP))
* l10n: Finnish translation.  Closes: #490630 (Esko Arajärvi)
* l10n: Italian debconf translations.  Closes: #492587 (Alessandro Vietta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2001  Internet Software Consortium.
4
4
 *
5
 
 * Permission to use, copy, modify, and distribute this software for any
 
5
 * Permission to use, copy, modify, and/or distribute this software for any
6
6
 * purpose with or without fee is hereby granted, provided that the above
7
7
 * copyright notice and this permission notice appear in all copies.
8
8
 *
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: tkeyconf.c,v 1.19.208.2 2004/06/11 00:30:51 marka Exp $ */
 
18
/* $Id: tkeyconf.c,v 1.29 2007/06/19 23:46:59 tbox Exp $ */
 
19
 
 
20
/*! \file */
19
21
 
20
22
#include <config.h>
21
23
 
40
42
                goto failure; \
41
43
        } while (0)
42
44
 
 
45
#include<named/log.h>
 
46
#define LOG(msg) \
 
47
        isc_log_write(ns_g_lctx, \
 
48
        NS_LOGCATEGORY_GENERAL, \
 
49
        NS_LOGMODULE_SERVER, \
 
50
        ISC_LOG_ERROR, \
 
51
        "%s", msg)
43
52
 
44
53
isc_result_t
45
 
ns_tkeyctx_fromconfig(cfg_obj_t *options, isc_mem_t *mctx, isc_entropy_t *ectx,
46
 
                       dns_tkeyctx_t **tctxp)
 
54
ns_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
 
55
                      isc_entropy_t *ectx, dns_tkeyctx_t **tctxp)
47
56
{
48
57
        isc_result_t result;
49
58
        dns_tkeyctx_t *tctx = NULL;
50
 
        char *s;
 
59
        const char *s;
51
60
        isc_uint32_t n;
52
61
        dns_fixedname_t fname;
53
62
        dns_name_t *name;
54
63
        isc_buffer_t b;
55
 
        cfg_obj_t *obj;
 
64
        const cfg_obj_t *obj;
56
65
        int type;
57
66
 
58
67
        result = dns_tkeyctx_create(mctx, ectx, &tctx);
98
107
        result = cfg_map_get(options, "tkey-gssapi-credential", &obj);
99
108
        if (result == ISC_R_SUCCESS) {
100
109
                s = cfg_obj_asstring(obj);
 
110
 
101
111
                isc_buffer_init(&b, s, strlen(s));
102
112
                isc_buffer_add(&b, strlen(s));
103
113
                dns_fixedname_init(&fname);