Commit b82c8641d97b4e055bde56dbe97be2b9a9f0cc37
1 parent
f64e15d7
Exists in
master
and in
3 other branches
Fixing CRL problem on windows version.
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/lib3270/ssl/windows/getcrl.c
@@ -292,7 +292,6 @@ int lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | @@ -292,7 +292,6 @@ int lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | ||
292 | } | 292 | } |
293 | 293 | ||
294 | debug("Tamanho da resposta: %u", (unsigned int) crl_data->length); | 294 | debug("Tamanho da resposta: %u", (unsigned int) crl_data->length); |
295 | - debug("Resposta:\n-------------------------------------------\n%s\n-------------------------------------------\n",crl_data->contents); | ||
296 | 295 | ||
297 | char *ct = NULL; | 296 | char *ct = NULL; |
298 | res = curl_easy_getinfo(hCurl, CURLINFO_CONTENT_TYPE, &ct); | 297 | res = curl_easy_getinfo(hCurl, CURLINFO_CONTENT_TYPE, &ct); |
@@ -360,7 +359,7 @@ int lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | @@ -360,7 +359,7 @@ int lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | ||
360 | trace_ssl(crl_data->hSession, text); | 359 | trace_ssl(crl_data->hSession, text); |
361 | 360 | ||
362 | lib3270_autoptr(char) key = lib3270_strdup_printf("%s: ",attr); | 361 | lib3270_autoptr(char) key = lib3270_strdup_printf("%s: ",attr); |
363 | - char *ptr = strstr((char *) crl_data->contents, key); | 362 | + char *ptr = strstr((char *) crl_data->data.contents, key); |
364 | 363 | ||
365 | debug("key=\"%s\" ptr=%p",key,ptr) | 364 | debug("key=\"%s\" ptr=%p",key,ptr) |
366 | 365 | ||
@@ -373,7 +372,7 @@ int lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | @@ -373,7 +372,7 @@ int lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | ||
373 | } | 372 | } |
374 | 373 | ||
375 | ptr += strlen(key); | 374 | ptr += strlen(key); |
376 | - size_t length = crl_data->length - (ptr - ((char *) crl_data->contents)); | 375 | + size_t length = crl_data->length - (ptr - ((char *) crl_data->data.contents)); |
377 | size_t ix; | 376 | size_t ix; |
378 | 377 | ||
379 | for(ix = 0; ix < (length-1); ix++) | 378 | for(ix = 0; ix < (length-1); ix++) |