diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/des/rpw.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libcrypto/des/rpw.c b/src/lib/libcrypto/des/rpw.c index 6447ed9cf0..8a9473c4f9 100644 --- a/src/lib/libcrypto/des/rpw.c +++ b/src/lib/libcrypto/des/rpw.c | |||
| @@ -57,17 +57,15 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include "des.h" | 60 | #include <openssl/des.h> |
| 61 | 61 | ||
| 62 | int main(argc,argv) | 62 | int main(int argc, char *argv[]) |
| 63 | int argc; | ||
| 64 | char *argv[]; | ||
| 65 | { | 63 | { |
| 66 | des_cblock k,k1; | 64 | DES_cblock k,k1; |
| 67 | int i; | 65 | int i; |
| 68 | 66 | ||
| 69 | printf("read passwd\n"); | 67 | printf("read passwd\n"); |
| 70 | if ((i=des_read_password((C_Block *)k,"Enter password:",0)) == 0) | 68 | if ((i=des_read_password(&k,"Enter password:",0)) == 0) |
| 71 | { | 69 | { |
| 72 | printf("password = "); | 70 | printf("password = "); |
| 73 | for (i=0; i<8; i++) | 71 | for (i=0; i<8; i++) |
| @@ -77,7 +75,7 @@ char *argv[]; | |||
| 77 | printf("error %d\n",i); | 75 | printf("error %d\n",i); |
| 78 | printf("\n"); | 76 | printf("\n"); |
| 79 | printf("read 2passwds and verify\n"); | 77 | printf("read 2passwds and verify\n"); |
| 80 | if ((i=des_read_2passwords((C_Block *)k,(C_Block *)k1, | 78 | if ((i=des_read_2passwords(&k,&k1, |
| 81 | "Enter verified password:",1)) == 0) | 79 | "Enter verified password:",1)) == 0) |
| 82 | { | 80 | { |
| 83 | printf("password1 = "); | 81 | printf("password1 = "); |
