src/windows/native/sun/net/www/protocol/http/ntlm/NTLMAuthSequence.c

Print this page

        

*** 58,68 **** static jfieldID ntlm_ctxHandleID; static jfieldID ntlm_crdHandleID; static HINSTANCE lib = NULL; ! JNIEXPORT void JNICALL Java_sun_net_www_protocol_http_NTLMAuthSequence_initFirst (JNIEnv *env, jclass clazz) { OSVERSIONINFO version; UCHAR libName[MAX_PATH]; --- 58,68 ---- static jfieldID ntlm_ctxHandleID; static jfieldID ntlm_crdHandleID; static HINSTANCE lib = NULL; ! JNIEXPORT void JNICALL Java_sun_net_www_protocol_http_ntlm_NTLMAuthSequence_initFirst (JNIEnv *env, jclass clazz) { OSVERSIONINFO version; UCHAR libName[MAX_PATH];
*** 111,121 **** * Class: sun_net_www_protocol_http_NTLMAuthSequence * Method: getCredentialsHandle * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)J */ ! JNIEXPORT jlong JNICALL Java_sun_net_www_protocol_http_NTLMAuthSequence_getCredentialsHandle (JNIEnv *env, jobject this, jstring user, jstring domain, jstring password) { SEC_WINNT_AUTH_IDENTITY AuthId; SEC_WINNT_AUTH_IDENTITY * pAuthId; const CHAR *pUser = 0; --- 111,121 ---- * Class: sun_net_www_protocol_http_NTLMAuthSequence * Method: getCredentialsHandle * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)J */ ! JNIEXPORT jlong JNICALL Java_sun_net_www_protocol_http_ntlm_NTLMAuthSequence_getCredentialsHandle (JNIEnv *env, jobject this, jstring user, jstring domain, jstring password) { SEC_WINNT_AUTH_IDENTITY AuthId; SEC_WINNT_AUTH_IDENTITY * pAuthId; const CHAR *pUser = 0;
*** 195,205 **** } else { return 0; } } ! JNIEXPORT jbyteArray JNICALL Java_sun_net_www_protocol_http_NTLMAuthSequence_getNextToken (JNIEnv *env, jobject this, jlong crdHandle, jbyteArray lastToken) { VOID *pInput = 0; DWORD inputLen; --- 195,205 ---- } else { return 0; } } ! JNIEXPORT jbyteArray JNICALL Java_sun_net_www_protocol_http_ntlm_NTLMAuthSequence_getNextToken (JNIEnv *env, jobject this, jlong crdHandle, jbyteArray lastToken) { VOID *pInput = 0; DWORD inputLen;