Commit 885149879cca59c2ce6026317e4313cddd38eb6d

Authored by perry.werneck@gmail.com
1 parent dd488281

Ativação do SSL pelo diálogo não estava reajustando a URL

Showing 2 changed files with 10 additions and 1 deletions   Show diff stats
host.c
... ... @@ -208,7 +208,7 @@ static void update_host(H3270 *h)
208 208 h->host.srvc
209 209 ));
210 210  
211   - trace("hosturl=[%s]",h->host.full);
  211 + trace("hosturl=[%s] ssl=%s",h->host.full,(h->options&LIB3270_OPTION_SSL) ? "yes" : "no");
212 212  
213 213 }
214 214  
... ...
options.c
... ... @@ -83,6 +83,15 @@ LIB3270_EXPORT void lib3270_set_options(H3270 *hSession, LIB3270_OPTION opt)
83 83 {
84 84 CHECK_SESSION_HANDLE(hSession);
85 85 hSession->options = opt;
  86 +
  87 + Replace(hSession->host.full,
  88 + lib3270_strdup_printf(
  89 + "%s%s:%s",
  90 + hSession->options&LIB3270_OPTION_SSL ? "tn3270s://" : "tn3270://",
  91 + hSession->host.current,
  92 + hSession->host.srvc
  93 + ));
  94 +
86 95 }
87 96  
88 97 LIB3270_EXPORT unsigned short lib3270_get_color_type(H3270 *hSession)
... ...