"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sha1num.c" between
pwgen-2.07.tar.gz and pwgen-2.08.tar.gz

About: pwgen generates secure or pronounceable passwords which are designed to be easily memorized by humans, while being as secure as possible.

sha1num.c  (pwgen-2.07):sha1num.c  (pwgen-2.08)
skipping to change at line 57 skipping to change at line 57
if( ! ( f = fopen( sha1, "rb" ) ) ) { if( ! ( f = fopen( sha1, "rb" ) ) ) {
fprintf(stderr, "Couldn't open file: %s.\n", sha1); fprintf(stderr, "Couldn't open file: %s.\n", sha1);
exit(1); exit(1);
} }
sha1_starts( &sha1_ctx ); sha1_starts( &sha1_ctx );
while( ( i = fread( buf, 1, sizeof( buf ), f ) ) > 0 ) { while( ( i = fread( buf, 1, sizeof( buf ), f ) ) > 0 ) {
sha1_update( &sha1_ctx, buf, i ); sha1_update( &sha1_ctx, buf, i );
} }
fclose(f);
return; return;
} }
int pw_sha1_number(int max_num) int pw_sha1_number(int max_num)
{ {
int val; int val;
sha1_context ctx; sha1_context ctx;
if (sha1sum_idx>19) { if (sha1sum_idx>19) {
sha1sum_idx = 0; sha1sum_idx = 0;
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)