summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-02-18 13:31:26 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-02-18 22:58:19 +0100
commit208b9f9bea519392428d99803edac1739ffdd444 (patch)
tree7acc18baf9cbca451d8b28fd3e648a332db815ba /src
parent82a4f022ec1cbb9530ffa21d95474152b24acf50 (diff)
downloadsssd-208b9f9bea519392428d99803edac1739ffdd444.tar.gz
sssd-208b9f9bea519392428d99803edac1739ffdd444.tar.xz
sssd-208b9f9bea519392428d99803edac1739ffdd444.zip
make make_realm_upper_case() static
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_private.h1
-rw-r--r--src/providers/ldap/sdap_async_users.c18
-rw-r--r--src/providers/ldap/sdap_utils.c19
3 files changed, 18 insertions, 20 deletions
diff --git a/src/providers/ldap/sdap_async_private.h b/src/providers/ldap/sdap_async_private.h
index 364c809a9..e689394c5 100644
--- a/src/providers/ldap/sdap_async_private.h
+++ b/src/providers/ldap/sdap_async_private.h
@@ -41,7 +41,6 @@ errno_t update_dn_list(struct dn_item *dn_list,
struct ldb_message **res,
bool *all_resolved);
-void make_realm_upper_case(const char *upn);
struct sdap_handle *sdap_handle_create(TALLOC_CTX *memctx);
void sdap_ldap_result(struct tevent_context *ev, struct tevent_fd *fde,
diff --git a/src/providers/ldap/sdap_async_users.c b/src/providers/ldap/sdap_async_users.c
index dd935377c..ef5478f94 100644
--- a/src/providers/ldap/sdap_async_users.c
+++ b/src/providers/ldap/sdap_async_users.c
@@ -28,6 +28,24 @@
#include "providers/ldap/sdap_idmap.h"
#include "providers/ldap/sdap_users.h"
+#define REALM_SEPARATOR '@'
+
+static void make_realm_upper_case(const char *upn)
+{
+ char *c;
+
+ c = strchr(upn, REALM_SEPARATOR);
+ if (c == NULL) {
+ DEBUG(SSSDBG_TRACE_ALL, "No realm delimiter found in upn [%s].\n", upn);
+ return;
+ }
+
+ while(*(++c) != '\0') {
+ c[0] = toupper(*c);
+ }
+
+ return;
+}
/* ==Save-User-Entry====================================================== */
diff --git a/src/providers/ldap/sdap_utils.c b/src/providers/ldap/sdap_utils.c
index 9653639c9..93a1faae1 100644
--- a/src/providers/ldap/sdap_utils.c
+++ b/src/providers/ldap/sdap_utils.c
@@ -22,25 +22,6 @@
#include "util/util.h"
#include "providers/ldap/sdap_async.h"
-#define REALM_SEPARATOR '@'
-
-void make_realm_upper_case(const char *upn)
-{
- char *c;
-
- c = strchr(upn, REALM_SEPARATOR);
- if (c == NULL) {
- DEBUG(SSSDBG_TRACE_ALL, "No realm delimiter found in upn [%s].\n", upn);
- return;
- }
-
- while(*(++c) != '\0') {
- c[0] = toupper(*c);
- }
-
- return;
-}
-
errno_t
sdap_attrs_add_ldap_attr(struct sysdb_attrs *ldap_attrs,
const char *attr_name,