Bug 231331. Pass correct parameter to native code.

This commit is contained in:
Jim Norman 2007-01-02 07:48:36 +00:00
parent 17b3766285
commit 0b4d751ef2
2 changed files with 235 additions and 232 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 2 12:33:19 MST 2007 - jnorman@novell.com
- Bug 231331. Pass correct parameter from JNI to native code.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 5 22:12:04 US/Mountain 2006 - cmashayekhi@novell.com Tue Dec 5 22:12:04 US/Mountain 2006 - cmashayekhi@novell.com

View File

@ -24,7 +24,6 @@
#include <jni.h> #include <jni.h>
#include <micasa_mgmd.h> #include <micasa_mgmd.h>
#include <sscs_utf8.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -122,14 +121,13 @@ Java_com_novell_casa_MiCasa_jmiCASAGetCredential
jobject jcred) jobject jcred)
{ {
int rcode = 0; int rcode = 0;
int iCredType = SSCS_CRED_TYPE_BASIC_F; uint32_t iCredType = SSCS_CRED_TYPE_BASIC_F;
SSCS_SECRET_ID_T appSecretId = {0}; SSCS_SECRET_ID_T appSecretId = {0};
SSCS_SECRET_ID_T sharedSecretId = {0}; SSCS_SECRET_ID_T sharedSecretId = {0};
SSCS_BASIC_CREDENTIAL credential = {0}; SSCS_BASIC_CREDENTIAL credential = {0};
const char* utf_string; const char* utf_string;
jboolean isCopy; jboolean isCopy;
int unType = jUsernameType;
utf_string = (*env)->GetStringUTFChars(env, jsAppSecretID, &isCopy); utf_string = (*env)->GetStringUTFChars(env, jsAppSecretID, &isCopy);
sscs_Utf8Strcpy((char*)appSecretId.id, utf_string); sscs_Utf8Strcpy((char*)appSecretId.id, utf_string);