diff options
author | Stef Walter <stefw@gnome.org> | 2013-01-24 11:34:47 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-02-05 14:54:46 +0100 |
commit | 5147d71466455b3d087b3f3a7472a35e8216c55a (patch) | |
tree | 4b81eee35b7d0ec877a34c4fde06478d700a3960 /common/compat.h | |
parent | 603c7d4eb996f51178ccc9d235597497bbb2c7a4 (diff) | |
download | p11-kit-5147d71466455b3d087b3f3a7472a35e8216c55a.tar.gz |
Add basic trust module
This is based off the roots-store from gnome-keyring and loads
certificates from a root directory and exposes them as PKCS#11
objects.
Diffstat (limited to 'common/compat.h')
-rw-r--r-- | common/compat.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/common/compat.h b/common/compat.h index 6305768..68786a7 100644 --- a/common/compat.h +++ b/common/compat.h @@ -39,8 +39,6 @@ #include <sys/types.h> -typedef enum { false, true } bool; - #if !defined(__cplusplus) && (__GNUC__ > 2) #define GNUC_PRINTF(x, y) __attribute__((__format__(__printf__, x, y))) #else @@ -175,6 +173,14 @@ typedef void * dl_module_t; #include <errno.h> #endif /* HAVE_ERRNO_H */ +#ifndef HAVE_STRNSTR + +char * strnstr (const char *s, + const char *find, + size_t slen); + +#endif /* HAVE_STRNSTR */ + #ifndef HAVE_MEMDUP void * memdup (void *data, @@ -188,4 +194,11 @@ void * memdup (void *data, typedef enum { false, true } bool; #endif +#ifndef HAVE_STRCONCAT + +char * strconcat (const char *first, + ...) GNUC_NULL_TERMINATED; + +#endif /* HAVE_STRCONCAT */ + #endif /* __COMPAT_H__ */ |