-/* $Id: MD5.xs,v 1.26 2000/09/18 14:27:44 gisle Exp $ */
-
/*
* This library is free software; you can redistribute it and/or
* modify it under the same terms as Perl itself.
STRLEN len;
PPCODE:
for (i = 1; i < items; i++) {
- data = (unsigned char *)(SvPV(ST(i), len));
+ data = (unsigned char *)(SvPVbyte(ST(i), len));
MD5Update(context, data, len);
}
XSRETURN(1); /* self */
PPCODE:
MD5Init(&ctx);
for (i = 0; i < items; i++) {
- data = (unsigned char *)(SvPV(ST(i), len));
+ data = (unsigned char *)(SvPVbyte(ST(i), len));
MD5Update(&ctx, data, len);
}
MD5Final(digeststr, &ctx);
} else { # ASCII
$EXPECT = <<EOT;
3d0146bf194e4fe68733d00fba02a49e ext/Digest/MD5/MD5.pm
-61debd0ec12e131e1ba220e2f3ad2d26 ext/Digest/MD5/MD5.xs
+f32f264090fdd2b85a4a9be8b1342752 ext/Digest/MD5/MD5.xs
EOT
}