Less "pointer targets in passing argument differ in signedness" warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17509 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -42,11 +42,11 @@ RCSID("$Id$");
|
||||
#include <string.h>
|
||||
|
||||
struct {
|
||||
const char *key;
|
||||
const void *key;
|
||||
const int keylen;
|
||||
const int bitsize;
|
||||
const char *plain;
|
||||
const char *cipher;
|
||||
const void *plain;
|
||||
const void *cipher;
|
||||
} tests[] = {
|
||||
{
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00"
|
||||
@@ -103,12 +103,12 @@ struct {
|
||||
}
|
||||
};
|
||||
|
||||
const char cbc_key[16] =
|
||||
const unsigned char cbc_key[16] =
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00"
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00";
|
||||
const char cbc_iv[8] =
|
||||
"\x01\x01\x01\x01\x01\x01\x01\x01";
|
||||
const char cbc_in_data[32] =
|
||||
const unsigned char cbc_in_data[32] =
|
||||
"\x20\x20\x20\x20\x20\x20\x20\x20"
|
||||
"\x20\x20\x20\x20\x20\x20\x20\x20"
|
||||
"\x20\x20\x20\x20\x20\x20\x20\x20"
|
||||
|
@@ -144,7 +144,7 @@ const unsigned char cipher3[] =
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
char buf[1024];
|
||||
unsigned char buf[1024];
|
||||
RC4_KEY key;
|
||||
|
||||
RC4_set_key(&key, 8, key1);
|
||||
|
Reference in New Issue
Block a user