diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-01-05 16:09:10 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-01-06 12:12:27 -0800 |
| commit | 68c6310ee83078d6ad6af0c9ccddef11b8f8b7c2 (patch) | |
| tree | d03175dddb1142a5ac9fedf4a8643f27648db53e /src/supplemental/tls/tls_api.h | |
| parent | f76f536742c7d0766244ff4b8d388586100384d5 (diff) | |
| download | nng-68c6310ee83078d6ad6af0c9ccddef11b8f8b7c2.tar.gz nng-68c6310ee83078d6ad6af0c9ccddef11b8f8b7c2.tar.bz2 nng-68c6310ee83078d6ad6af0c9ccddef11b8f8b7c2.zip | |
fixes #847 Define public TLS API
Diffstat (limited to 'src/supplemental/tls/tls_api.h')
| -rw-r--r-- | src/supplemental/tls/tls_api.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/supplemental/tls/tls_api.h b/src/supplemental/tls/tls_api.h index 63424d5e..22dd68a0 100644 --- a/src/supplemental/tls/tls_api.h +++ b/src/supplemental/tls/tls_api.h @@ -1,7 +1,7 @@ // // Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> -// Copyright 2018 Devolutions <info@devolutions.net> +// Copyright 2019 Devolutions <info@devolutions.net> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -44,6 +44,20 @@ extern int nni_tls_setopt( nni_tls *, const char *, const void *, size_t, nni_type); extern int nni_tls_getopt(nni_tls *, const char *, void *, size_t *, nni_type); -// TBD: getting additional peer certificate information... +extern int nni_tls_set( + nng_tls *, const char *, const void *, size_t, nni_type); +extern int nni_tls_get(nng_tls *, const char *, void *, size_t *, nni_type); + +extern int nni_tls_dialer_setopt( + nng_tls_dialer *, const char *, const void *, size_t, nni_type); + +extern int nni_tls_dialer_getopt( + nng_tls_dialer *, const char *, void *, size_t *, nni_type); + +extern int nni_tls_listener_setopt( + nng_tls_listener *, const char *, const void *, size_t, nni_type); + +extern int nni_tls_listener_getopt( + nng_tls_listener *, const char *, void *, size_t *, nni_type); #endif // NNG_SUPPLEMENTAL_TLS_TLS_API_H |
