Talk:NSS Library Init: Difference between revisions

Line 23: Line 23:
Point 1 of the proposal says ''Multiple NSS_LibraryInit() calls are allowed. Each call will get it's own context.''  Point 3 of the proposal says ''NSS_LibraryShutdown() can be called once per context. If NSS_LibraryShutdown is called a second time on a context, an error is returned.''  But point 1 also says ''NSS will keep a count of NSS_LibraryInit calls.''  Why is a count of those calls necessary if each call gets its own unique context?
Point 1 of the proposal says ''Multiple NSS_LibraryInit() calls are allowed. Each call will get it's own context.''  Point 3 of the proposal says ''NSS_LibraryShutdown() can be called once per context. If NSS_LibraryShutdown is called a second time on a context, an error is returned.''  But point 1 also says ''NSS will keep a count of NSS_LibraryInit calls.''  Why is a count of those calls necessary if each call gets its own unique context?


The count was an implementation detail. It no longer exists. it's been replaces with a list of active contexts.
> The count was an implementation detail. It no longer exists. it's been replaces with a list of active contexts.


== NSS_Init() semantics change after a call to NSS_LibraryInit() ?? ==
== NSS_Init() semantics change after a call to NSS_LibraryInit() ?? ==
439

edits