Commit 0c40faba03253d029518ea78acff3a233ec5764f
1 parent
13d1732b
Exists in
master
and in
3 other branches
Adding ssl state property.
Showing
1 changed file
with
13 additions
and
1 deletions
Show diff stats
src/core/properties.c
@@ -259,6 +259,11 @@ | @@ -259,6 +259,11 @@ | ||
259 | return properties; | 259 | return properties; |
260 | } | 260 | } |
261 | 261 | ||
262 | + static int lib3270_get_ssl_state_as_int(H3270 * hSession) | ||
263 | + { | ||
264 | + return (int) lib3270_get_ssl_state(hSession); | ||
265 | + } | ||
266 | + | ||
262 | const LIB3270_INT_PROPERTY * lib3270_get_int_properties_list(void) | 267 | const LIB3270_INT_PROPERTY * lib3270_get_int_properties_list(void) |
263 | { | 268 | { |
264 | 269 | ||
@@ -292,10 +297,17 @@ | @@ -292,10 +297,17 @@ | ||
292 | NULL // Set value. | 297 | NULL // Set value. |
293 | }, | 298 | }, |
294 | 299 | ||
300 | + { | ||
301 | + "ssl_state", // Property name. | ||
302 | + N_( "ID of the session security state" ), // Property description. | ||
303 | + lib3270_get_ssl_state_as_int, // Get value. | ||
304 | + NULL // Set value. | ||
305 | + }, | ||
306 | + | ||
295 | /* | 307 | /* |
296 | { | 308 | { |
297 | "", // Property name. | 309 | "", // Property name. |
298 | - "", // Property description. | 310 | + "", // Property description. |
299 | NULL, // Get value. | 311 | NULL, // Get value. |
300 | NULL // Set value. | 312 | NULL // Set value. |
301 | }, | 313 | }, |