diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-02-26 20:55:43 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-02-26 20:55:43 +0000 |
commit | 30944474a7d5c5a6629e79939be4875071a0795e (patch) | |
tree | db3ef0202f732e67e411564cd7df01fe1486c63b /src/ne_utils.c | |
parent | 7160168c975c03b67f3e1affad601499c1ae103e (diff) | |
download | neon-30944474a7d5c5a6629e79939be4875071a0795e.tar.gz |
* macros/neon.m4 (NEON_SSL): Define a feature macro for thread-safe
SSL support.
* src/ne_utils.h: Add NE_FEATURE_TS_SSL feature code.
* src/ne_utils.c (ne_has_support): Support it (or... not).
* neon-config.in: Add feature code.
* test/util-tests.c (support): Test for it.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@953 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_utils.c')
-rw-r--r-- | src/ne_utils.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ne_utils.c b/src/ne_utils.c index 5b7e82b..21789f8 100644 --- a/src/ne_utils.c +++ b/src/ne_utils.c @@ -1,6 +1,6 @@ /* HTTP utility functions - Copyright (C) 1999-2005, Joe Orton <joe@manyfish.co.uk> + Copyright (C) 1999-2006, Joe Orton <joe@manyfish.co.uk> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -136,7 +136,8 @@ int ne_has_support(int feature) { switch (feature) { #if defined(NE_HAVE_SSL) || defined(NE_HAVE_ZLIB) || defined(NE_HAVE_IPV6) \ - || defined(NE_HAVE_SOCKS) || defined(NE_HAVE_LFS) + || defined(NE_HAVE_SOCKS) || defined(NE_HAVE_LFS) \ + || defined(NE_HAVE_TS_SSL) #ifdef NE_HAVE_SSL case NE_FEATURE_SSL: #endif @@ -152,6 +153,9 @@ int ne_has_support(int feature) #ifdef NE_HAVE_LFS case NE_FEATURE_LFS: #endif +#ifdef NE_HAVE_TS_SSL + case NE_FEATURE_TS_SSL: +#endif return 1; #endif /* NE_HAVE_* */ default: |