aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-23 18:14:40 +0100
committerHugo Landau <hlandau@openssl.org>2024-02-02 11:49:34 +0000
commit00b27f33e6a2b7f5270f3a3e6edf69121a4dc209 (patch)
tree33a2da63aa7fa4b48be7161f68e898570c89fe61 /include
parentc127e764451fa8b0493ade5a696ccdad08deff04 (diff)
downloadopenssl-00b27f33e6a2b7f5270f3a3e6edf69121a4dc209.tar.gz
QLOG: Frontend: Implementation
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22037)
Diffstat (limited to 'include')
-rw-r--r--include/internal/common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/internal/common.h b/include/internal/common.h
index 47cb6631f5..2530ff0412 100644
--- a/include/internal/common.h
+++ b/include/internal/common.h
@@ -198,6 +198,20 @@ static ossl_inline int ossl_ends_with_dirsep(const char *path)
return *path == '/';
}
+static ossl_inline char ossl_determine_dirsep(const char *path)
+{
+ if (ossl_ends_with_dirsep(path))
+ return '\0';
+
+# if defined(_WIN32)
+ return '\\';
+# elif defined(__VMS)
+ return ':';
+# else
+ return '/';
+# endif
+}
+
static ossl_inline int ossl_is_absolute_path(const char *path)
{
# if defined __VMS