Lines Matching defs:info
23 * info.ssl_connection member (this is independent of whether the connection
76 sess_save_cb(struct lws_context *cx, struct lws_tls_session_dump *info)
81 lws_snprintf(path, sizeof(path), "%s/lws_tls_sess_%s", (const char *)info->opaque,
82 info->tag);
89 n = (int)write(fd, info->blob, info->blob_len);
93 return n != (int)info->blob_len;
97 sess_load_cb(struct lws_context *cx, struct lws_tls_session_dump *info)
103 lws_snprintf(path, sizeof(path), "%s/lws_tls_sess_%s", (const char *)info->opaque,
104 info->tag);
112 info->blob = malloc((size_t)sta.st_size);
114 if (!info->blob)
117 info->blob_len = (size_t)sta.st_size;
119 n = (int)read(fd, info->blob, info->blob_len);
122 return n != (int)info->blob_len;
521 struct lws_context_creation_info info;
528 memset(&info, 0, sizeof info); /* otherwise uninitialized garbage */
531 lws_cmdline_option_handle_builtin(argc, argv, &info);
533 info.signal_cb = signal_cb;
534 info.options = LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT;
537 info.options |= LWS_SERVER_OPTION_LIBUV;
540 info.options |= LWS_SERVER_OPTION_LIBEVENT;
543 info.options |= LWS_SERVER_OPTION_LIBEV;
546 info.options |= LWS_SERVER_OPTION_GLIB;
556 info.port = CONTEXT_PORT_NO_LISTEN; /* we do not run any server */
557 info.protocols = protocols;
565 info.fd_limit_per_thread = 1 + COUNT + 1;
566 info.register_notifier_list = na;
567 info.pcontext = &context;
570 info.system_ops = &system_ops;
578 info.client_ssl_ca_filepath = "./warmcat.com.cer";
584 info.options |= LWS_SERVER_OPTION_DISABLE_TLS_SESSION_CACHE;
587 info.simultaneous_ssl_restriction = atoi(p);
593 info.simultaneous_ssl_handshake_restriction = atoi(p);
595 context = lws_create_context(&info);