Bug 231331. Pass correct parameter to native code.
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
| @@ -24,7 +24,6 @@ | ||||
|  | ||||
| #include <jni.h> | ||||
| #include <micasa_mgmd.h> | ||||
| #include <sscs_utf8.h> | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| @@ -122,14 +121,13 @@ Java_com_novell_casa_MiCasa_jmiCASAGetCredential | ||||
|   jobject		jcred) | ||||
| { | ||||
| 	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		sharedSecretId = {0}; | ||||
| 	SSCS_BASIC_CREDENTIAL	credential = {0}; | ||||
|  | ||||
| 	const char* utf_string; | ||||
| 	jboolean isCopy; | ||||
| 	int unType = jUsernameType; | ||||
|  | ||||
| 	utf_string = (*env)->GetStringUTFChars(env, jsAppSecretID, &isCopy); | ||||
| 	sscs_Utf8Strcpy((char*)appSecretId.id, utf_string); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user