Commit 9cdc159d9f7761ba2183c9e8c0ab9eaf56a62f69

Authored by Perry Werneck
1 parent 3a5f8f21

Searching for LDAP download on windows problem.

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
src/lib3270/ssl/windows/getcrl.c
... ... @@ -127,7 +127,7 @@ static size_t internal_curl_write_callback(void *contents, size_t size, size_t n
127 127 data->contents[data->length++] = *(ptr++);
128 128 }
129 129  
130   - debug("\n%s\n-------------------------------------------", data->contents);
  130 +// debug("\n%s\n-------------------------------------------", data->contents);
131 131  
132 132 return realsize;
133 133 }
... ... @@ -253,7 +253,6 @@ X509_CRL * lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message)
253 253 curl_easy_setopt(hCurl, CURLOPT_VERBOSE, 1L);
254 254 curl_easy_setopt(hCurl, CURLOPT_DEBUGFUNCTION, internal_curl_trace_callback);
255 255 curl_easy_setopt(hCurl, CURLOPT_DEBUGDATA, (void *) crl_data);
256   - CURLOPT_DEBUGDATA
257 256 }
258 257  
259 258 res = curl_easy_perform(hCurl);
... ... @@ -293,12 +292,12 @@ X509_CRL * lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message)
293 292 return NULL;
294 293 }
295 294  
296   - // debug("content-type: %s",ct);
297   -
298 295 if(ct)
299 296 {
300 297 const unsigned char * data = crl_data->contents;
301 298  
  299 + trace_ssl(crl_data->hSession, "Content-type: %s", ct);
  300 +
302 301 if(strcasecmp(ct,"application/pkix-crl") == 0)
303 302 {
304 303 // CRL File, convert it
... ... @@ -323,6 +322,8 @@ X509_CRL * lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message)
323 322 else if(strncasecmp(consturl,"ldap://",7) == 0)
324 323 {
325 324 // It's an LDAP query, assumes a base64 data.
  325 + trace_ssl(crl_data->hSession, "No mime-type, assuming LDAP/BASE64");
  326 +
326 327 char * data = strstr((char *) crl_data->contents,":: ");
327 328 if(!data)
328 329 {
... ...