Where to put new classes in hierarchy?
Mikael Svensson
minisip at mikaelsvensson.info
Sat Jun 30 12:13:58 CEST 2007
Hello everybody
Quick question about the library hierarchy of Minisip:
I'm about to develop a certificate locater (automatic certificate
downloader) and a corresponding certificate cache (to avoid using the
locater). This means that my new classes will be dependent on libmcrypto
and libmnetutil. My first idea was then to put these new features in the
libmcrypto library, but...
Then I realized that a certificate cache can be made more generic and
then hold other types of cachable items as well, e.g. "directory service
search results". This led me to this conclusion:
libmnetutil: add "directory service search result" class
libmcrypto: add "certificate cache item" class (dependency: libmnetutil)
libminisip: add "cache management" class (dependencies: libmcrypto and
libmnetutil)
Would this "comply" with how the Minisip "depenceny tree" is designed?
Regards
Mikael
More information about the Minisip-devel
mailing list