mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Mongoose TCP tunnel
PUBLISHED_FROM=f03b963aaec02574e47c28ee8033551440b94f2d
This commit is contained in:
1 parent
499a7d6a37
commit
5045dfab74
11 files changed
+751
-18
No files matched your search
@@ -7,6 +7,7 @@ signature: |
|
||||
void *user_data; /* Initial value for connection's user_data */
|
||||
unsigned int flags; /* Initial connection flags */
|
||||
const char **error_string; /* Placeholder for the error string */
|
||||
struct mg_iface *iface; /* Interface instance */
|
||||
};
|
||||
---
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ signature: |
|
||||
void *user_data; /* Initial value for connection's user_data */
|
||||
unsigned int flags; /* Extra connection flags */
|
||||
const char **error_string; /* Placeholder for the error string */
|
||||
struct mg_iface *iface; /* Interface instance */
|
||||
#if MG_ENABLE_SSL
|
||||
/* SSL settings. */
|
||||
const char *ssl_cert; /* Server certificate to present to clients */
|
||||
|
||||
@@ -7,6 +7,7 @@ signature: |
|
||||
void *user_data; /* Initial value for connection's user_data */
|
||||
unsigned int flags; /* Extra connection flags */
|
||||
const char **error_string; /* Placeholder for the error string */
|
||||
struct mg_iface *iface; /* Interface instance */
|
||||
#if MG_ENABLE_SSL
|
||||
/* SSL settings. */
|
||||
const char *ssl_cert; /* Client certificate to present to the server */
|
||||
|
||||
@@ -7,6 +7,7 @@ items:
|
||||
- { name: mg_avprintf.md }
|
||||
- { name: mg_base64_decode.md }
|
||||
- { name: mg_base64_encode.md }
|
||||
- { name: mg_basic_auth_header.md }
|
||||
- { name: mg_casecmp.md }
|
||||
- { name: mg_conn_addr_to_str.md }
|
||||
- { name: mg_fopen.md }
|
||||
@@ -14,6 +15,8 @@ items:
|
||||
- { name: mg_hexdump_connection.md }
|
||||
- { name: mg_is_big_endian.md }
|
||||
- { name: mg_match_prefix.md }
|
||||
- { name: mg_mbuf_append_base64.md }
|
||||
- { name: mg_mbuf_append_base64_putc.md }
|
||||
- { name: mg_ncasecmp.md }
|
||||
- { name: mg_next_comma_list_entry.md }
|
||||
- { name: mg_open.md }
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: "mg_basic_auth_header()"
|
||||
decl_name: "mg_basic_auth_header"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
void mg_basic_auth_header(const char *user, const char *pass, struct mbuf *buf);
|
||||
---
|
||||
|
||||
Generate a Basic Auth header and appends it to buf.
|
||||
If pass is NULL, then user is expected to contain the credentials pair
|
||||
already encoded as `user:pass`.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
title: "mg_mbuf_append_base64()"
|
||||
decl_name: "mg_mbuf_append_base64"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
void mg_mbuf_append_base64(struct mbuf *mbuf, const void *data, size_t len);
|
||||
---
|
||||
|
||||
Encode `len` bytes starting at `data` as base64 and append them to an mbuf.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
title: "mg_mbuf_append_base64_putc()"
|
||||
decl_name: "mg_mbuf_append_base64_putc"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
void mg_mbuf_append_base64_putc(char ch, void *user_data);
|
||||
---
|
||||
|
||||
Use with cs_base64_init/update/finish in order to write out base64 in chunks.
|
||||
|
||||
Reference in new issue
Block a user