[Fwd: Re: [Fwd: Re: Rsyncrypto errors during restore.]]
Brought to you by:
thesun
From: Edwin S. <po...@Ed...> - 2005-11-29 16:05:48
|
Dear Shachar, Just as extra information, I recompiled rsyncrypto and will send you the command output of it. I'm using argtable-2.4.0, rsyncrypto 0.16 and gzip 1.3.3. Regards, Edwin. [root@p3151447 rsyncrypto-0.16]# make clean test -z "rsyncrypto" || rm -f rsyncrypto test -z "blocksizes" || rm -f blocksizes rm -f *.o core *.core [root@p3151447 rsyncrypto-0.16]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for AES_encrypt in -lcrypto... yes checking for arg_parse in -largtable2... yes checking whether platform supports lstat... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking how to run the C++ preprocessor... g++ -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking argtable2.h usability... yes checking argtable2.h presence... yes checking for argtable2.h... yes checking ext/hash_map usability... yes checking ext/hash_map presence... yes checking for ext/hash_map... yes checking for O_NOATIME support in open... no checking whether struct stat has nanosecond resolution... st_mtim is a struct timespec checking for gzip with "rsyncable" support... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands [root@p3151447 rsyncrypto-0.16]# make make all-am make[1]: Entering directory `/home/edwin/rsyncrypto-0.16' if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT crypto.o -MD -MP -MF ".deps/crypto.Tpo" \ -c -o crypto.o `test -f 'crypto.cpp' || echo './'`crypto.cpp; \ then mv -f ".deps/crypto.Tpo" ".deps/crypto.Po"; \ else rm -f ".deps/crypto.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT crypt_key.o -MD -MP -MF ".deps/crypt_key.Tpo" \ -c -o crypt_key.o `test -f 'crypt_key.cpp' || echo './'`crypt_key.cpp; = \ then mv -f ".deps/crypt_key.Tpo" ".deps/crypt_key.Po"; \ else rm -f ".deps/crypt_key.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT aes_crypt.o -MD -MP -MF ".deps/aes_crypt.Tpo" \ -c -o aes_crypt.o `test -f 'aes_crypt.cpp' || echo './'`aes_crypt.cpp; = \ then mv -f ".deps/aes_crypt.Tpo" ".deps/aes_crypt.Po"; \ else rm -f ".deps/aes_crypt.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT file.o -MD -MP -MF ".deps/file.Tpo" \ -c -o file.o `test -f 'file.cpp' || echo './'`file.cpp; \ then mv -f ".deps/file.Tpo" ".deps/file.Po"; \ else rm -f ".deps/file.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT process.o -MD -MP -MF ".deps/process.Tpo" \ -c -o process.o `test -f 'process.cpp' || echo './'`process.cpp; \ then mv -f ".deps/process.Tpo" ".deps/process.Po"; \ else rm -f ".deps/process.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT redir.o -MD -MP -MF ".deps/redir.Tpo" \ -c -o redir.o `test -f 'redir.cpp' || echo './'`redir.cpp; \ then mv -f ".deps/redir.Tpo" ".deps/redir.Po"; \ else rm -f ".deps/redir.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT filemap.o -MD -MP -MF ".deps/filemap.Tpo" \ -c -o filemap.o `test -f 'filemap.cpp' || echo './'`filemap.cpp; \ then mv -f ".deps/filemap.Tpo" ".deps/filemap.Po"; \ else rm -f ".deps/filemap.Tpo"; exit 1; \ fi g++ -g -O2 -o rsyncrypto main.o crypto.o crypt_key.o aes_crypt.o file.o process.o redir.o filemap.o -largtable2 -lcrypto if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT blocksizes.o -MD -MP -M= F ".deps/blocksizes.Tpo" \ -c -o blocksizes.o `test -f 'blocksizes.cpp' || echo './'`blocksizes.cp= p; \ then mv -f ".deps/blocksizes.Tpo" ".deps/blocksizes.Po"; \ else rm -f ".deps/blocksizes.Tpo"; exit 1; \ fi g++ -g -O2 -o blocksizes crypt_key.o aes_crypt.o blocksizes.o=20 -largtable2 -lcrypto make[1]: Leaving directory `/home/edwin/rsyncrypto-0.16' [root@p3151447 rsyncrypto-0.16]# make check [root@p3151447 rsyncrypto-0.16]# make install make[1]: Entering directory `/home/edwin/rsyncrypto-0.16' /bin/sh ./mkinstalldirs /usr/local/bin /usr/bin/install -c rsyncrypto /usr/local/bin/rsyncrypto /bin/sh ./mkinstalldirs /usr/local/man/man1 /usr/bin/install -c -m 644 ./rsyncrypto.man /usr/local/man/man1/rsyncryp= to.1 make[1]: Leaving directory `/home/edwin/rsyncrypto-0.16' [root@p3151447 rsyncrypto-0.16]# ------------------------- Oorspronkelijk bericht ------------------------= - Onderwerp: Re: [Fwd: Re: Rsyncrypto errors during restore.] Van: "Shachar Shemesh" <rsy...@sh...> Datum: Di, 29 november, 2005 16:17 Aan: "Edwin Schouten" <po...@Ed...> CC: rsy...@li... -------------------------------------------------------------------------= - Edwin Schouten wrote: >Dear rsy...@li..., > >I have tested the nullgzip, but it gave weird results restoring files. >This does not solve the previously reported errors, so I will stop >investigate further with the nullgzip file. > >Again, as the previous e-mail decribes, it restores not all file and no >directories. Small files (text) seem to restore OK, but larger ones are >restored partially. I have attached an example of the COPYING file with >all used keys and the output of the command prompt. > >Regards, >Edwin. > > I'm attaching an encrypted "COPYING" file, encrypted using the symmetric and public key you sent in the previous message. Can you please let me know whether the command "rsyncrypto -d enc/COPYING dec/COPYING key/COPYING req.pem", where enc/COPYING is the file attached, completes without error? There is definitely something wrong with the encryption performed by your rsyncrypto. Now I'm trying to figure out whether at least the decryption works correctly. Thanks, Shachar --=20 Shachar Shemesh Lingnu Open Source Consulting ltd. Have you backed up today's work? http://www.lingnu.com/backup.html |