proxygen
OnLoad.cpp File Reference

Go to the source code of this file.

Functions

JNIEXPORT jint JNI_OnLoad (JavaVM *vm, void *)
 

Function Documentation

JNIEXPORT jint JNI_OnLoad ( JavaVM *  vm,
void *   
)

Definition at line 14 of file OnLoad.cpp.

References fizz::JavaCryptoPeerCert::onLoad(), and fizz::jni::setVM().

14  {
15  JNIEnv* env;
16  if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
17  return -1;
18  }
19 
20  jni::setVM(vm);
21  JavaCryptoPeerCert::onLoad(env);
22 
23  return JNI_VERSION_1_6;
24 }
void setVM(JavaVM *jvm)
Definition: JniUtils.cpp:19