~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/iax2/md5.c

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        }
117
117
        memcpy(p, buf, t);
118
118
        IAX_byteReverse(ctx->in, 16);
119
 
        IAX_MD5Transform(ctx->buf, (uint32_t *) ctx->in);
 
119
        IAX_MD5Transform(ctx->buf, ctx->in_32);
120
120
        buf += t;
121
121
        len -= t;
122
122
    }
171
171
    IAX_byteReverse(ctx->in, 14);
172
172
 
173
173
    /* Append length in bits and transform */
174
 
    ((uint32_t *) ctx->in)[14] = ctx->bits[0];
175
 
    ((uint32_t *) ctx->in)[15] = ctx->bits[1];
 
174
    ctx->in_32[14] = ctx->bits[0];
 
175
    ctx->in_32[15] = ctx->bits[1];
176
176
 
177
 
    IAX_MD5Transform(ctx->buf, (uint32_t *) ctx->in);
 
177
    IAX_MD5Transform(ctx->buf, ctx->in_32);
178
178
    IAX_byteReverse((uint8_t *) ctx->buf, 4);
179
179
    memcpy(digest, ctx->buf, 16);
180
 
    memset(ctx, 0, sizeof(ctx));        /* In case it's sensitive */
 
180
    memset(ctx, 0, sizeof(*ctx));       /* In case it's sensitive */
181
181
}
182
182
 
183
183
#ifndef ASM_MD5