~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/pk11wrap/secmodi.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
extern int secmod_PrivateModuleCount;
59
59
 
60
60
extern void SECMOD_Init(void);
61
 
SECStatus secmod_ModuleInit(SECMODModule *mod, PRBool* alreadyLoaded);
 
61
SECStatus secmod_ModuleInit(SECMODModule *mod, SECMODModule **oldModule,
 
62
                            PRBool* alreadyLoaded);
62
63
 
63
64
/* list managment */
64
65
extern SECStatus SECMOD_AddModuleToList(SECMODModule *newModule);
73
74
 
74
75
/* Operate on modules by name */
75
76
extern SECMODModule *SECMOD_FindModuleByID(SECMODModuleID);
 
77
extern SECMODModule *secmod_FindModuleByFuncPtr(void *funcPtr);
76
78
 
77
79
/* database/memory management */
78
80
extern SECMODModuleList *SECMOD_NewModuleListElement(void);
84
86
extern unsigned long SECMOD_InternaltoPubCipherFlags(unsigned long internalFlags);
85
87
 
86
88
/* Library functions */
87
 
SECStatus SECMOD_LoadPKCS11Module(SECMODModule *);
 
89
SECStatus secmod_LoadPKCS11Module(SECMODModule *, SECMODModule **oldModule);
88
90
SECStatus SECMOD_UnloadModule(SECMODModule *);
89
91
void SECMOD_SetInternalModule(SECMODModule *);
 
92
PRBool secmod_IsInternalKeySlot(SECMODModule *);
 
93
 
 
94
/* tools for checking if we are loading the same database twice */
 
95
typedef struct SECMODConfigListStr SECMODConfigList;
 
96
/* collect all the databases in a given spec */
 
97
SECMODConfigList *secmod_GetConfigList(PRBool isFIPS, char *spec, int *count);
 
98
/* see is a spec matches a database on the list */
 
99
PRBool secmod_MatchConfigList(char *spec, 
 
100
                              SECMODConfigList *conflist, int count);
 
101
/* free our list of databases */
 
102
void secmod_FreeConfigList(SECMODConfigList *conflist, int count);
 
103
 
 
104
/* parsing parameters */
 
105
/* returned char * must be freed by caller with PORT_Free */
 
106
/* children and ids are null terminated arrays which must be freed with
 
107
 * secmod_FreeChildren */
 
108
char *secmod_ParseModuleSpecForTokens(PRBool convert,
 
109
                                      PRBool isFIPS,
 
110
                                      char *moduleSpec,
 
111
                                      char ***children, 
 
112
                                      CK_SLOT_ID **ids);
 
113
void secmod_FreeChildren(char **children, CK_SLOT_ID *ids);
 
114
char *secmod_MkAppendTokensList(PRArenaPool *arena, char *origModuleSpec, 
 
115
                                char *newModuleSpec, CK_SLOT_ID newID,
 
116
                                char **children, CK_SLOT_ID *ids);
 
117
char *secmod_DoubleEscape(const char *string, char quote1, char quote2);
 
118
 
 
119
 
90
120
 
91
121
void SECMOD_SlotDestroyModule(SECMODModule *module, PRBool fromSlot);
92
122
CK_RV pk11_notify(CK_SESSION_HANDLE session, CK_NOTIFICATION event,