Commit e2de5e2bcc516de9959b604c6c3519c397b9f48f

Authored by perry.werneck@gmail.com
1 parent 8c67f1c8

Incluindo metodo "test" no rexx, pequenos ajustes na biblioteca

Showing 3 changed files with 12 additions and 1 deletions   Show diff stats
screen.c
... ... @@ -536,7 +536,7 @@ LIB3270_EXPORT LIB3270_STATUS lib3270_get_program_message(H3270 *session)
536 536 * @return 0 if the terminal is ready (no message, keyboard unlocked), LIB3270_MESSAGE if not
537 537 *
538 538 */
539   -LIB3270_EXPORT int lib3270_lock_status(H3270 *hSession)
  539 +LIB3270_EXPORT LIB3270_MESSAGE lib3270_lock_status(H3270 *hSession)
540 540 {
541 541 CHECK_SESSION_HANDLE(hSession);
542 542  
... ...
state.c
... ... @@ -92,6 +92,12 @@ LIB3270_EXPORT int lib3270_in_tn3270e(H3270 *h)
92 92 return (h->cstate == CONNECTED_TN3270E);
93 93 }
94 94  
  95 +LIB3270_EXPORT int lib3270_is_connected(H3270 *h)
  96 +{
  97 + CHECK_SESSION_HANDLE(h);
  98 + return (h->cstate == CONNECTED_TN3270E);
  99 +}
  100 +
95 101 LIB3270_EXPORT int lib3270_in_e(H3270 *h)
96 102 {
97 103 CHECK_SESSION_HANDLE(h);
... ...
telnet.c
... ... @@ -3276,6 +3276,11 @@ LIB3270_EXPORT LIB3270_SSL_STATE lib3270_get_secure(H3270 *session)
3276 3276 return session->secure;
3277 3277 }
3278 3278  
  3279 +LIB3270_EXPORT int lib3270_is_secure(H3270 *hSession)
  3280 +{
  3281 + return lib3270_get_secure(hSession) == LIB3270_SSL_SECURE;
  3282 +}
  3283 +
3279 3284 LIB3270_EXPORT long lib3270_get_SSL_verify_result(H3270 *hSession)
3280 3285 {
3281 3286 CHECK_SESSION_HANDLE(hSession);
... ...