Remove cdbhdl.h, which is now a private export. Instead we cut and paste
its contents into our file. git-svn-id: svn://10.0.0.236/trunk@87398 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
155d9bb3cc
commit
0448e0420f
@ -43,7 +43,6 @@
|
||||
#include <secrng.h>
|
||||
#include <nspr.h>
|
||||
#include <plstr.h>
|
||||
#include <cdbhdl.h>
|
||||
#include <pkcs11.h>
|
||||
|
||||
#include <jssutil.h>
|
||||
@ -57,6 +56,19 @@
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
/* HACK
|
||||
* Include this from cdbhdl.h since it's now a private export.
|
||||
* We only do this because we need to allocate memory for this so
|
||||
* we need its size.
|
||||
*/
|
||||
struct CERTCertDBHandleStr {
|
||||
DB *permCertDB;
|
||||
DB *tempCertDB;
|
||||
void *spkDigestInfo;
|
||||
CERTStatusConfig *statusConfig;
|
||||
PZMonitor *dbMon;
|
||||
};
|
||||
|
||||
/*
|
||||
** NOTE: We must declare a function "prototype" for the following function
|
||||
** since it is defined in the "private" NSPR 2.0 header files,
|
||||
@ -549,6 +561,11 @@ JSS_completeInitialize(JNIEnv *env,
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if( NSS_SetDomesticPolicy() != SECSuccess ) {
|
||||
JSS_throwMsg(env, SECURITY_EXCEPTION, "Unable to set security policy");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
/*
|
||||
* Save the JavaVM pointer so we can retrieve the JNI environment
|
||||
* later. This only works if there is only one Java VM.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user