~ubuntu-branches/ubuntu/raring/heimdal/raring

« back to all changes in this revision

Viewing changes to kdc/mit_dump.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-07-21 17:40:58 UTC
  • mfrom: (1.1.12 upstream) (2.4.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20110721174058-byiuowgocek307cs
Tags: 1.5~pre2+git20110720-2
Fix dependency on pthreads when building on Linux 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
static int
78
78
hex_to_octet_string(const char *ptr, krb5_data *data)
79
79
{
80
 
    int i;
 
80
    size_t i;
81
81
    unsigned int v;
82
82
    for(i = 0; i < data->length; i++) {
83
83
        if(sscanf(ptr + 2 * i, "%02x", &v) != 1)
165
165
    case KRB5_KDB_SALTTYPE_NOREALM:
166
166
    {
167
167
        size_t len;
168
 
        int i;
 
168
        size_t i;
169
169
        char *p;
170
 
        
 
170
 
171
171
        len = 0;
172
172
        for (i = 0; i < ent->principal->name.name_string.len; ++i)
173
173
            len += strlen(ent->principal->name.name_string.val[i]);
381
381
            high_kvno = kvno;
382
382
            ALLOC(ent.entry.keys.val[i].mkvno);
383
383
            *ent.entry.keys.val[i].mkvno = 1;
384
 
        
 
384
 
385
385
            /* key version 0 -- actual key */
386
386
            ent.entry.keys.val[i].key.keytype = getint(&p); /* key type */
387
387
            tmp = getint(&p); /* key length */