Hi Lukas, sorry for the late answer, but a mail that goes not to the list and doesn't have Embperl in it's subject, easly get's lost in the tons of mails in my inbox, so better answer to the list the next time....
> >> > >> I need to implement my own cipher.c. What I should change? > >> > GR> Which cipher.c? Can you please explain a little bit more what you like to > GR> do? > > I`m not pleased with SSL library in ecrypto.c, I need my own alghoritm wich is > simple and fast. I need to rewrite this: > > int do_crypt_file(FILE * in, > FILE * out, > char * output, > int outsize, > int do_encrypt, > unsigned char * begin, > unsigned char * header) > You need to read from the file 'in' and pass the decrypted data into the buffer passed via 'output'. 'outsize' is the size of the output buffer, you must not put more data in it. 'do_encrypt' is always set 0 by Embperl. 'begin' normaly contains the name of the syntax used (to make sure you on decrypt it for the right syntax, otherwise you could easily get the source by running it with syntax => 'Text') and 'header' is a constant, that is used to distiguish between encrypted and normal files. > > This is the first problem. Second problem would be that my epcrypto.c > needs to include two files (the cipher library and md5 library). I`m > not makefile guru and I don`t know how to add it. I just have two .c > files and two .h files. > In Makefile.PL, about line 1187, just add your .c files to the 'OBJECT' line (actualy not the c files, but the object files that are generated from the c files). You don't need to add the h files, if you want to to let make rebuild when they changes, you have to add them in the 'depend' line Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
