projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create branch
[openssl.git]
/
crypto
/
idea
/
ideatest.c
diff --git
a/crypto/idea/ideatest.c
b/crypto/idea/ideatest.c
index ee01ba5b2cece650311b73fd15933f694d0a0db1..e6ffc7025e75db4ceb38852fea7c0a652bee671e 100644
(file)
--- a/
crypto/idea/ideatest.c
+++ b/
crypto/idea/ideatest.c
@@
-1,5
+1,5
@@
/* crypto/idea/ideatest.c */
/* crypto/idea/ideatest.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-59,7
+59,17
@@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include "idea.h"
+
+#include "../e_os.h"
+
+#ifdef OPENSSL_NO_IDEA
+int main(int argc, char *argv[])
+{
+ printf("No IDEA support\n");
+ return(0);
+}
+#else
+#include <openssl/idea.h>
unsigned char k[16]={
0x00,0x01,0x00,0x02,0x00,0x03,0x00,0x04,
unsigned char k[16]={
0x00,0x01,0x00,0x02,0x00,0x03,0x00,0x04,
@@
-95,17
+105,9
@@
static unsigned char cfb_cipher64[CFB_TEST_SIZE]={
0x3D,0x1E,0xAE,0x47,0xFC,0xCF,0x29,0x0B,*/
};
0x3D,0x1E,0xAE,0x47,0xFC,0xCF,0x29,0x0B,*/
};
-#ifndef NOPROTO
static int cfb64_test(unsigned char *cfb_cipher);
static char *pt(unsigned char *p);
static int cfb64_test(unsigned char *cfb_cipher);
static char *pt(unsigned char *p);
-#else
-static int cfb64_test();
-static char *pt();
-#endif
-
-int main(argc,argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
{
int i,err=0;
IDEA_KEY_SCHEDULE key,dkey;
{
int i,err=0;
IDEA_KEY_SCHEDULE key,dkey;
@@
-167,12
+169,14
@@
char *argv[];
else
printf("ok\n");
else
printf("ok\n");
- exit(err);
+#ifdef OPENSSL_SYS_NETWARE
+ if (err) printf("ERROR: %d\n", err);
+#endif
+ EXIT(err);
return(err);
}
return(err);
}
-static int cfb64_test(cfb_cipher)
-unsigned char *cfb_cipher;
+static int cfb64_test(unsigned char *cfb_cipher)
{
IDEA_KEY_SCHEDULE eks,dks;
int err=0,i,n;
{
IDEA_KEY_SCHEDULE eks,dks;
int err=0,i,n;
@@
-210,8
+214,7
@@
unsigned char *cfb_cipher;
return(err);
}
return(err);
}
-static char *pt(p)
-unsigned char *p;
+static char *pt(unsigned char *p)
{
static char bufs[10][20];
static int bnum=0;
{
static char bufs[10][20];
static int bnum=0;
@@
-229,4
+232,4
@@
unsigned char *p;
ret[16]='\0';
return(ret);
}
ret[16]='\0';
return(ret);
}
-
+#endif