Fix warnings.

This commit is contained in:
Dr. Stephen Henson 2007-06-20 17:49:42 +00:00
parent 6be8288928
commit b2d65cbac7
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ typedef struct {
unsigned long data[N_WORDS]; unsigned long data[N_WORDS];
} aes_block_t; } aes_block_t;
// XXX: probably some better way to do this /* XXX: probably some better way to do this */
#if defined(__i386__) || defined(__x86_64__) #if defined(__i386__) || defined(__x86_64__)
#define UNALIGNED_MEMOPS_ARE_FAST 1 #define UNALIGNED_MEMOPS_ARE_FAST 1
#endif #endif

View File

@ -54,11 +54,11 @@
*/ */
#include <openssl/opensslconf.h> #include <openssl/opensslconf.h>
#ifndef OPENSSL_NO_SEED
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#ifndef OPENSSL_NO_SEED
#include <openssl/seed.h> #include <openssl/seed.h>
#include "evp_locl.h" #include "evp_locl.h"

View File

@ -221,7 +221,7 @@ static int run_test_vectors(void)
++errs; ++errs;
} }
// try with in == out /* try with in == out */
memcpy(iv, v->iv, sizeof iv); memcpy(iv, v->iv, sizeof iv);
memcpy(buf, v->in, v->length); memcpy(buf, v->in, v->length);
AES_ige_encrypt(buf, buf, v->length, &key, iv, v->encrypt); AES_ige_encrypt(buf, buf, v->length, &key, iv, v->encrypt);