Stop warnings.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 11 May 2005 00:35:55 +0000 (00:35 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 11 May 2005 00:35:55 +0000 (00:35 +0000)
fips/fipshashes.c
fips/hmac/fips_hmac_selftest.c
ssl/ssltest.c

index 1dc78609693d33e2e1f00a182d7a030af69e965b..8676a479933dba7c78c339799f428dca98002cc5 100644 (file)
@@ -34,5 +34,5 @@ const char * const FIPS_source_hashes[] = {
 "HMAC-SHA1(sha1/fips_sha256.c)= 826e768677e67b7c87dfc9e084245b619804d01c",
 "HMAC-SHA1(sha1/fips_sha512.c)= 27e16912ff196982425c00fe266fa84ef4f48fcd",
 "HMAC-SHA1(hmac/fips_hmac.c)= a477cec1da76c0092979c4a875b6469339bff7ef",
-"HMAC-SHA1(hmac/fips_hmac_selftest.c)= 63aa4e9699ae8178051c59fec7d18d3bd9aad25d",
+"HMAC-SHA1(hmac/fips_hmac_selftest.c)= 09a27945cafdeb5978109e90278c981464dba324",
 };
index 71e26d1eede5a8d137775cdfaee9a6b0a200a77f..773468245ed5e0a11e0f2bed93374fca18155233 100644 (file)
@@ -121,7 +121,7 @@ int FIPS_selftest_hmac()
        {
        md = (*t->alg)();
        HMAC(md,t->key,strlen(t->key),
-               t->iv,strlen(t->iv),
+               (const unsigned char *)t->iv,strlen(t->iv),
                out,&outlen);
 
        if(outlen<md->md_size || memcmp(out,t->kaval,md->md_size))
index 808ee6e862c67cc1a8b7e9b29618a0797dc3fd2b..e129028c9d172a07d747d1a24d6dd55c2777018e 100644 (file)
@@ -1930,7 +1930,7 @@ static int MS_CALLBACK app_verify_callback(X509_STORE_CTX *ctx, void *arg)
                fprintf(stderr, "In app_verify_callback, allowing cert. ");
                fprintf(stderr, "Arg is: %s\n", cb_arg->string);
                fprintf(stderr, "Finished printing do we have a context? 0x%p a cert? 0x%p\n",
-                       ctx, ctx->cert);
+                       (void *)ctx, (void *)ctx->cert);
                if (ctx->cert)
                        s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256);
                if (s != NULL)