-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
56 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
components/libwebsockets/examples/server-echo/main/lws_test_pt.c
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
TODO | ||
*/ | ||
#include "stdio.h" | ||
#include <libwebsockets.h> | ||
|
||
extern int __real_mbedtls_ssl_handshake_step(mbedtls_ssl_context *ssl); | ||
extern int __wrap_mbedtls_ssl_handshake_step(mbedtls_ssl_context *ssl); | ||
|
||
int __wrap_mbedtls_ssl_handshake_step( mbedtls_ssl_context *ssl ) | ||
{ | ||
int ret = 0; | ||
|
||
while (ssl->MBEDTLS_PRIVATE(state) != MBEDTLS_SSL_HANDSHAKE_OVER) { | ||
ret = __real_mbedtls_ssl_handshake_step(ssl); | ||
|
||
if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE) | ||
{ | ||
continue; | ||
} | ||
|
||
if (ret != 0) | ||
break; | ||
} | ||
|
||
return ret; | ||
} | ||
|
||
extern struct lws * __real_lws_adopt_descriptor_vhost(struct lws_vhost *vh, lws_adoption_type type, lws_sock_file_fd_type fd, const char *vh_prot_name, struct lws *parent); | ||
extern struct lws * __wrap_lws_adopt_descriptor_vhost(struct lws_vhost *vh, lws_adoption_type type, lws_sock_file_fd_type fd, const char *vh_prot_name, struct lws *parent); | ||
|
||
struct lws * __wrap_lws_adopt_descriptor_vhost(struct lws_vhost *vh, lws_adoption_type type, lws_sock_file_fd_type fd, const char *vh_prot_name, struct lws *parent) | ||
{ | ||
lws_adopt_desc_t info; | ||
char nullstr[] = "(null)"; | ||
memset(&info, 0, sizeof(info)); | ||
|
||
info.vh = vh; | ||
info.type = type; | ||
info.fd = fd; | ||
info.vh_prot_name = vh_prot_name; | ||
info.parent = parent; | ||
info.fi_wsi_name = nullstr; | ||
|
||
return lws_adopt_descriptor_vhost_via_info(&info); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.