int bigend;
{
krb5_error_code code;
- MD5_CTX md5;
+ krb5_MD5_CTX md5;
krb5_checksum desmac;
int tmsglen, tlen;
unsigned char *t, *ptr;
/* compute the checksum */
- MD5Init(&md5);
- MD5Update(&md5, (unsigned char *) ptr-2, 8);
+ krb5_MD5Init(&md5);
+ krb5_MD5Update(&md5, (unsigned char *) ptr-2, 8);
if (bigend)
- MD5Update(&md5, text->value, text->length);
+ krb5_MD5Update(&md5, text->value, text->length);
else
- MD5Update(&md5, plain, tmsglen);
- MD5Final(&md5);
+ krb5_MD5Update(&md5, plain, tmsglen);
+ krb5_MD5Final(&md5);
xfree(plain);
} else {
/* compute the checksum */
- MD5Init(&md5);
- MD5Update(&md5, (unsigned char *) ptr-2, 8);
- MD5Update(&md5, text->value, text->length);
- MD5Final(&md5);
+ krb5_MD5Init(&md5);
+ krb5_MD5Update(&md5, (unsigned char *) ptr-2, 8);
+ krb5_MD5Update(&md5, text->value, text->length);
+ krb5_MD5Final(&md5);
}
/* XXX this depends on the key being a single-des key, but that's
gss_buffer_desc token;
unsigned char *ptr;
krb5_checksum desmac;
- MD5_CTX md5;
+ krb5_MD5_CTX md5;
unsigned char *cksum;
krb5_timestamp now;
unsigned char *plain;
if (signalg == 0) {
/* compute the checksum of the message */
- MD5Init(&md5);
- MD5Update(&md5, (unsigned char *) ptr-2, 8);
+ krb5_MD5Init(&md5);
+ krb5_MD5Update(&md5, (unsigned char *) ptr-2, 8);
if (ctx->big_endian)
- MD5Update(&md5, token.value, token.length);
+ krb5_MD5Update(&md5, token.value, token.length);
else
- MD5Update(&md5, plain, plainlen);
- MD5Final(&md5);
+ krb5_MD5Update(&md5, plain, plainlen);
+ krb5_MD5Final(&md5);
if (sealalg == 0)
xfree(plain);
ctx->seed_init = 1;
}
- MD5Init(&md5);
- MD5Update(&md5, ctx->seed, sizeof(ctx->seed));
- MD5Update(&md5, (unsigned char *) ptr-2, 8);
+ krb5_MD5Init(&md5);
+ krb5_MD5Update(&md5, ctx->seed, sizeof(ctx->seed));
+ krb5_MD5Update(&md5, (unsigned char *) ptr-2, 8);
if (ctx->big_endian)
- MD5Update(&md5, token.value, token.length);
+ krb5_MD5Update(&md5, token.value, token.length);
else
- MD5Update(&md5, plain, plainlen);
- MD5Final(&md5);
+ krb5_MD5Update(&md5, plain, plainlen);
+ krb5_MD5Final(&md5);
if (sealalg == 0)
xfree(plain);