1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

optee: other plat fixes

This commit is contained in:
Andy Green 2019-01-11 17:14:04 +08:00
parent ad9c99a6d3
commit d2a1bbd8aa
3 changed files with 9 additions and 1 deletions

View file

@ -284,7 +284,9 @@ LWS_VISIBLE int
lws_ssl_capable_write_no_ssl(struct lws *wsi, unsigned char *buf, int len)
{
int n = 0;
#if defined(LWS_PLAT_OPTEE)
ssize_t send(int sockfd, const void *buf, size_t len, int flags);
#endif
if (lws_wsi_is_udp(wsi)) {
#if !defined(LWS_WITH_ESP32) && !defined(LWS_PLAT_OPTEE)

View file

@ -19,6 +19,7 @@
extern "C" {
#endif
//#include "core/private.h"
#include <lws_config.h>
#if defined(LWS_WITH_ESP32)
#undef MBEDTLS_CONFIG_FILE
@ -154,10 +155,11 @@ struct X509_VERIFY_PARAM_st {
};
typedef int (*next_proto_cb)(SSL *ssl, unsigned char **out,
typedef int (*next_proto_cb)(SSL *ssl, const unsigned char **out,
unsigned char *outlen, const unsigned char *in,
unsigned int inlen, void *arg);
struct ssl_ctx_st
{
int version;

View file

@ -21,6 +21,10 @@
* gencrypto openssl-specific helper declarations
*/
typedef int (*next_proto_cb)(SSL *, const unsigned char **out,
unsigned char *outlen, const unsigned char *in,
unsigned int inlen, void *arg);
struct lws_x509_cert {
X509 *cert; /* X509 is opaque, this has to be a pointer */
};