From 3d075fad7496ec126c5087d1c36ab7a4af73ce16 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 22 Jan 2018 14:05:10 -0800 Subject: fixes #219 transports should take URL structure instead of string address This eliminates a bunch of redundant URL parsing, using the common URL logic we already have in place. While here I fixed a problem with the TLS and WSS test suites that was failing on older Ubuntu -- apparently older versions of mbedTLS were unhappy if selecting OPTIONAL verification without a validate certificate chain. --- src/core/url.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/url.h') diff --git a/src/core/url.h b/src/core/url.h index f99d6eb4..27aec445 100644 --- a/src/core/url.h +++ b/src/core/url.h @@ -11,8 +11,6 @@ #ifndef CORE_URL_H #define CORE_URL_H -typedef struct nni_url nni_url; - struct nni_url { char *u_rawurl; // never NULL char *u_scheme; // never NULL @@ -28,5 +26,6 @@ struct nni_url { extern int nni_url_parse(nni_url **, const char *path); extern void nni_url_free(nni_url *); +extern int nni_url_clone(nni_url **, const nni_url *); #endif // CORE_URL_H -- cgit v1.2.3-70-g09d2