Robert

A few weeks ago there was a short discusion about encryption. I have implemented a method and a couple of points arose that are worth passing on.

I am only interested in the encrypting the archive files which contain the landscape and therefore decided that using OSGA_Archive was a reasonable starting point as I could see where to intercept the read and write.

Initially I created a new file plugin similar to OSGA_Archive but using a different file qualifier than "osga". This hit a road block because in osgDB::Registry.cpp function read() ".osga" is hardcoded as achiveName. I could not see any easy way round this (I may have missed something obvious). Having a means to set this archive name qualifier in Registry would be useful (to me at least). Does this make sense?

Secondly, I reverted to modifying OSGA_Archive, and, in order to intercept the read and write within OSGA_Archive, created read and write callbacks based on streambuf. These effectively allow encryption or compression for example from a calling program.

This leads me to 2 questions: 1) is the addition of callbacks of any interest to the community and 2) if it is, would they be better implemented within the Archive class so that any derived archive could have the facility.

If any of these are yes I will create a submission.

--

Regards
Alan Harris

ReSoft Ltd
Cornwallis, Burycroft Road
Hook Norton
Banbury, OX15 5PR, UK
Tel: +44 (0) 1608 730707
Email: [EMAIL PROTECTED]
Web: www.resoft.co.uk
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to