From 17b3766285a00bddf80dd3c59305f8fdb06a76c2 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Tue, 2 Jan 2007 07:40:41 +0000 Subject: [PATCH] Bug 231331. Pass CRED_TYPE_BASIC_F in JNI Layer. --- CASA/jwrapper/jnsscs/jmicasa.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CASA/jwrapper/jnsscs/jmicasa.c b/CASA/jwrapper/jnsscs/jmicasa.c index 14b5fa2c..b6d3ad52 100644 --- a/CASA/jwrapper/jnsscs/jmicasa.c +++ b/CASA/jwrapper/jnsscs/jmicasa.c @@ -23,7 +23,7 @@ #include "com_novell_casa_MiCasa.h" #include -#include +#include #include #ifdef __cplusplus @@ -90,7 +90,7 @@ Java_com_novell_casa_MiCasa_jmiCASASetCredential ssFlags, &appSecretId, &sharedSecretId, - jUsernameType, + SSCS_CRED_TYPE_BASIC_F, &credential, NULL ); @@ -99,7 +99,7 @@ Java_com_novell_casa_MiCasa_jmiCASASetCredential ssFlags, &appSecretId, NULL, - jUsernameType, + SSCS_CRED_TYPE_BASIC_F, &credential, NULL ); @@ -122,6 +122,7 @@ Java_com_novell_casa_MiCasa_jmiCASAGetCredential jobject jcred) { int rcode = 0; + int iCredType = SSCS_CRED_TYPE_BASIC_F; SSCS_SECRET_ID_T appSecretId = {0}; SSCS_SECRET_ID_T sharedSecretId = {0}; SSCS_BASIC_CREDENTIAL credential = {0}; @@ -153,7 +154,7 @@ Java_com_novell_casa_MiCasa_jmiCASAGetCredential ssFlags, &appSecretId, &sharedSecretId, - &unType, + &iCredType, &credential, NULL ); @@ -162,7 +163,7 @@ Java_com_novell_casa_MiCasa_jmiCASAGetCredential ssFlags, &appSecretId, NULL, - &unType, + &iCredType, &credential, NULL );