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

« back to all changes in this revision

Viewing changes to lib/otp/otp_md.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:
72
72
{
73
73
    unsigned char t;
74
74
    size_t i;
75
 
    
 
75
 
76
76
    for (i = 0; i < len; i += 4) {
77
77
        t = res[i + 0]; res[i + 0] = res[i + 3]; res[i + 3] = t;
78
78
        t = res[i + 1]; res[i + 1] = res[i + 2]; res[i + 2] = t;
91
91
    EVP_MD_CTX *ctx;
92
92
    char *p;
93
93
    int len;
94
 
    
 
94
 
95
95
    ctx = EVP_MD_CTX_create();
96
96
 
97
97
    len = strlen(pwd) + strlen(seed);
110
110
 
111
111
    if (le)
112
112
        little_endian(res, ressz);
113
 
    
 
113
 
114
114
    free (p);
115
115
    compressmd (key, res, ressz);
116
116
    return 0;