mirror of
https://github.com/urbit/shrub.git
synced 2024-11-27 18:34:48 +03:00
adds static libsni (extracted from sniproxy) dependency
This commit is contained in:
parent
8c14770e98
commit
9ff2c86a2b
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -19,3 +19,6 @@
|
||||
[submodule "subprojects/h2o"]
|
||||
path = subprojects/libh2o
|
||||
url = https://github.com/urbit/h2o.git
|
||||
[submodule "subprojects/libsni"]
|
||||
path = subprojects/libsni
|
||||
url = https://github.com/urbit/sniproxy
|
||||
|
@ -306,6 +306,8 @@ softfloat3_dep = dependency('softfloat3', version: '>=3.0.0', fallback: ['softfl
|
||||
libuv_dep = dependency('libuv', version: '>=1.8.0', fallback:['libuv', 'libuv_dep'])
|
||||
libh2o_dep = dependency('libh2o', version: '>=0.13.3', fallback: ['libh2o', 'libh2o_dep'])
|
||||
|
||||
libsni_dep = dependency('libsni', version: '>=0.5.0', fallback: ['libsni', 'libsni_dep'])
|
||||
|
||||
executable('urbit',
|
||||
sources : sources,
|
||||
include_directories : incdir,
|
||||
@ -321,5 +323,6 @@ dependencies: [openssl_dep,
|
||||
urbitscrypt_dep,
|
||||
ed25519_dep,
|
||||
murmur3_dep,
|
||||
softfloat3_dep] + os_deps,
|
||||
softfloat3_dep,
|
||||
libsni_dep] + os_deps,
|
||||
install: true)
|
||||
|
1
subprojects/libsni
Submodule
1
subprojects/libsni
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit a59901c38a67660039ee93a6170a338634d76ec0
|
@ -18,7 +18,7 @@
|
||||
#include "vere/vere.h"
|
||||
|
||||
#include <picohttpparser.h>
|
||||
// #include <tls.h>
|
||||
#include <tls.h>
|
||||
|
||||
static const c3_i TCP_BACKLOG = 16;
|
||||
|
||||
@ -1574,7 +1574,8 @@ _proxy_parse_host(const uv_buf_t* buf_u, c3_c** hot_c)
|
||||
static u3_proxy_pars
|
||||
_proxy_parse_sni(const uv_buf_t* buf_u, c3_c** hot_c)
|
||||
{
|
||||
c3_i sas_i = 0; //tls_protocol->parse_packet(buf_u->base, buf_u->len, hot_c);
|
||||
c3_i sas_i = parse_tls_header((const uint8_t*)buf_u->base,
|
||||
buf_u->len, hot_c);
|
||||
|
||||
if ( 0 > sas_i ) {
|
||||
switch ( sas_i ) {
|
||||
|
Loading…
Reference in New Issue
Block a user