summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-04-26 14:16:50 +0200
committerSimo Sorce <simo@redhat.com>2013-04-26 08:58:16 -0400
commit89fc3b6b927b4a98737186fab2a6593ca4d20475 (patch)
tree3de75bbaed5fa357a1522dc8a1a1b61becccbeba
parentafdd055bd84338d0d9df545e787c0541e984762b (diff)
downloadgss-proxy-89fc3b6b927b4a98737186fab2a6593ca4d20475.tar.gz
gss-proxy-89fc3b6b927b4a98737186fab2a6593ca4d20475.tar.xz
gss-proxy-89fc3b6b927b4a98737186fab2a6593ca4d20475.zip
Make gp_boolean_is_true non-static.
Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
-rw-r--r--proxy/src/gp_common.c12
-rw-r--r--proxy/src/gp_common.h1
-rw-r--r--proxy/src/gp_config.c12
3 files changed, 13 insertions, 12 deletions
diff --git a/proxy/src/gp_common.c b/proxy/src/gp_common.c
index f4ebc5e..19253dc 100644
--- a/proxy/src/gp_common.c
+++ b/proxy/src/gp_common.c
@@ -35,3 +35,15 @@ bool gp_same(const char *a, const char *b)
return false;
}
+
+bool gp_boolean_is_true(const char *s)
+{
+ if (strcasecmp(s, "1") == 0 ||
+ strcasecmp(s, "on") == 0 ||
+ strcasecmp(s, "true") == 0 ||
+ strcasecmp(s, "yes") == 0) {
+ return true;
+ }
+
+ return false;
+}
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h
index 25cd278..9e4ae81 100644
--- a/proxy/src/gp_common.h
+++ b/proxy/src/gp_common.h
@@ -66,6 +66,7 @@
#define MAX_RPC_SIZE 1024*1024
bool gp_same(const char *a, const char *b);
+bool gp_boolean_is_true(const char *s);
#include "rpcgen/gss_proxy.h"
diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c
index 92dcf24..6993c52 100644
--- a/proxy/src/gp_config.c
+++ b/proxy/src/gp_config.c
@@ -56,18 +56,6 @@ static void gp_service_free(struct gp_service *svc)
memset(svc, 0, sizeof(struct gp_service));
}
-static bool gp_boolean_is_true(const char *s)
-{
- if (strcasecmp(s, "1") == 0 ||
- strcasecmp(s, "on") == 0 ||
- strcasecmp(s, "true") == 0 ||
- strcasecmp(s, "yes") == 0) {
- return true;
- }
-
- return false;
-}
-
static int get_krb5_mech_cfg(struct gp_service *svc,
struct gp_ini_context *ctx,
const char *secname)