projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix BN_kronecker so that it works correctly if 'a' is negative
[openssl.git]
/
crypto
/
des
/
rpw.c
diff --git
a/crypto/des/rpw.c
b/crypto/des/rpw.c
index 93793c6f5368d3b49f83f726380c53d176d7c32f..0b6b1519b074eb2d1d056074cf04486e3749bcf3 100644
(file)
--- a/
crypto/des/rpw.c
+++ b/
crypto/des/rpw.c
@@
-1,5
+1,5
@@
/* crypto/des/rpw.c */
/* crypto/des/rpw.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
@@
-57,17
+57,15
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
-#include
"des.h"
+#include
<openssl/des.h>
-int main(argc,argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
{
des_cblock k,k1;
int i;
printf("read passwd\n");
{
des_cblock k,k1;
int i;
printf("read passwd\n");
- if ((i=des_read_password(
(C_Block *)
k,"Enter password:",0)) == 0)
+ if ((i=des_read_password(
&
k,"Enter password:",0)) == 0)
{
printf("password = ");
for (i=0; i<8; i++)
{
printf("password = ");
for (i=0; i<8; i++)
@@
-77,7
+75,7
@@
char *argv[];
printf("error %d\n",i);
printf("\n");
printf("read 2passwds and verify\n");
printf("error %d\n",i);
printf("\n");
printf("read 2passwds and verify\n");
- if ((i=des_read_2passwords(
(C_Block *)k,(C_Block *)
k1,
+ if ((i=des_read_2passwords(
&k,&
k1,
"Enter verified password:",1)) == 0)
{
printf("password1 = ");
"Enter verified password:",1)) == 0)
{
printf("password1 = ");