From 9b886a9999247d87c9f6d389c3e65a4bd39be010 Mon Sep 17 00:00:00 2001 From: Vincent Nonnenmacher Date: Fri, 16 Mar 2018 15:06:34 +0100 Subject: Fixes issues found by (and submitted by) @nonnenmacher when working on a python wrapper (cffi). Mostly this is fixing inconsistencies in our public API and the actual implementation. --- src/supplemental/tls/none/tls.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/supplemental/tls') diff --git a/src/supplemental/tls/none/tls.c b/src/supplemental/tls/none/tls.c index a11bd3fa..2fdc0c93 100644 --- a/src/supplemental/tls/none/tls.c +++ b/src/supplemental/tls/none/tls.c @@ -163,6 +163,22 @@ nng_tls_config_cert_key_file( return (NNG_ENOTSUP); } +int nng_tls_config_key(nng_tls_config *cfg, const uint8_t * key, size_t size) +{ + NNI_ARG_UNUSED(cfg); + NNI_ARG_UNUSED(key); + NNI_ARG_UNUSED(size); + return (NNG_ENOTSUP); +} + +int nng_tls_config_pass(nng_tls_config *cfg, const char *pass) +{ + NNI_ARG_UNUSED(cfg); + NNI_ARG_UNUSED(pass); + return (NNG_ENOTSUP); +} + + int nng_tls_config_alloc(nng_tls_config **cfgp, nng_tls_mode mode) { -- cgit v1.2.3-70-g09d2