projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add functions to return FIPS module version.
[oweals/openssl.git]
/
apps
/
speed.c
diff --git
a/apps/speed.c
b/apps/speed.c
index d2e4abf495dda73d564d44a4c283eda29ded0b6c..d4b0fddf7b8113b209aa48800f8ddecfa3bb6bda 100644
(file)
--- a/
apps/speed.c
+++ b/
apps/speed.c
@@
-1246,7
+1246,8
@@
int MAIN(int argc, char **argv)
count*=2;
Time_F(START);
for (it=count; it; it--)
count*=2;
Time_F(START);
for (it=count; it; it--)
- DES_ecb_encrypt(buf_as_des_cblock,buf_as_des_cblock,
+ DES_ecb_encrypt((DES_cblock *)buf,
+ (DES_cblock *)buf,
&sch,DES_ENCRYPT);
d=Time_F(STOP);
} while (d <3);
&sch,DES_ENCRYPT);
d=Time_F(STOP);
} while (d <3);
@@
-2643,7
+2644,11
@@
static int do_multi(int multi)
fds=malloc(multi*sizeof *fds);
for(n=0 ; n < multi ; ++n)
{
fds=malloc(multi*sizeof *fds);
for(n=0 ; n < multi ; ++n)
{
- pipe(fd);
+ if (pipe(fd) == -1)
+ {
+ fprintf(stderr, "pipe failure\n");
+ exit(1);
+ }
fflush(stdout);
fflush(stderr);
if(fork())
fflush(stdout);
fflush(stderr);
if(fork())
@@
-2655,7
+2660,11
@@
static int do_multi(int multi)
{
close(fd[0]);
close(1);
{
close(fd[0]);
close(1);
- dup(fd[1]);
+ if (dup(fd[1]) == -1)
+ {
+ fprintf(stderr, "dup failed\n");
+ exit(1);
+ }
close(fd[1]);
mr=1;
usertime=0;
close(fd[1]);
mr=1;
usertime=0;
@@
-2738,6
+2747,7
@@
static int do_multi(int multi)
else
rsa_results[k][1]=d;
}
else
rsa_results[k][1]=d;
}
+#ifndef OPENSSL_NO_DSA
else if(!strncmp(buf,"+F3:",4))
{
int k;
else if(!strncmp(buf,"+F3:",4))
{
int k;
@@
-2759,6
+2769,7
@@
static int do_multi(int multi)
else
dsa_results[k][1]=d;
}
else
dsa_results[k][1]=d;
}
+#endif
#ifndef OPENSSL_NO_ECDSA
else if(!strncmp(buf,"+F4:",4))
{
#ifndef OPENSSL_NO_ECDSA
else if(!strncmp(buf,"+F4:",4))
{