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

« back to all changes in this revision

Viewing changes to lib/krb5/digest.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:
244
244
    DigestREP rep;
245
245
    krb5_error_code ret;
246
246
    krb5_data data, data2;
247
 
    size_t size;
 
247
    size_t size = 0;
248
248
    krb5_crypto crypto = NULL;
249
249
    krb5_auth_context ac = NULL;
250
250
    krb5_principal principal = NULL;
727
727
        ireq.u.digestRequest.type = digest->init.type;
728
728
    }
729
729
 
730
 
    if (ireq.u.digestRequest.digest == NULL)
731
 
        ireq.u.digestRequest.digest = "md5";
 
730
    if (ireq.u.digestRequest.digest == NULL) {
 
731
        static char md5[] = "md5";
 
732
        ireq.u.digestRequest.digest = md5;
 
733
    }
732
734
 
733
735
    ret = digest_request(context, realm, ccache,
734
736
                         KRB5_KU_DIGEST_ENCRYPT, &ireq, &irep);