summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-12 16:18:38 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-13 04:58:40 +0100
commitbb6e64802ee16bf694639546e131817459b26fca (patch)
tree8be3a48a04a08bbef59fa33ab02e88ffa95785d0 /auth
parent36829cff8f006c52af8d43484f9252f9d1cbd745 (diff)
downloadsamba-bb6e64802ee16bf694639546e131817459b26fca.tar.gz
samba-bb6e64802ee16bf694639546e131817459b26fca.tar.bz2
samba-bb6e64802ee16bf694639546e131817459b26fca.zip
auth/gensec: make sure functions from gensec.c are in gensec.h
metze
Diffstat (limited to 'auth')
-rw-r--r--auth/gensec/gensec.c10
-rw-r--r--auth/gensec/gensec.h2
2 files changed, 7 insertions, 5 deletions
diff --git a/auth/gensec/gensec.c b/auth/gensec/gensec.c
index d1dcc75eaf..1e61bf0116 100644
--- a/auth/gensec/gensec.c
+++ b/auth/gensec/gensec.c
@@ -111,7 +111,7 @@ _PUBLIC_ size_t gensec_sig_size(struct gensec_security *gensec_security, size_t
return gensec_security->ops->sig_size(gensec_security, data_size);
}
-size_t gensec_max_wrapped_size(struct gensec_security *gensec_security)
+_PUBLIC_ size_t gensec_max_wrapped_size(struct gensec_security *gensec_security)
{
if (!gensec_security->ops->max_wrapped_size) {
return (1 << 17);
@@ -120,7 +120,7 @@ size_t gensec_max_wrapped_size(struct gensec_security *gensec_security)
return gensec_security->ops->max_wrapped_size(gensec_security);
}
-size_t gensec_max_input_size(struct gensec_security *gensec_security)
+_PUBLIC_ size_t gensec_max_input_size(struct gensec_security *gensec_security)
{
if (!gensec_security->ops->max_input_size) {
return (1 << 17) - gensec_sig_size(gensec_security, 1 << 17);
@@ -185,13 +185,13 @@ _PUBLIC_ NTSTATUS gensec_session_info(struct gensec_security *gensec_security,
return gensec_security->ops->session_info(gensec_security, mem_ctx, session_info);
}
-void gensec_set_max_update_size(struct gensec_security *gensec_security,
+_PUBLIC_ void gensec_set_max_update_size(struct gensec_security *gensec_security,
uint32_t max_update_size)
{
gensec_security->max_update_size = max_update_size;
}
-size_t gensec_max_update_size(struct gensec_security *gensec_security)
+_PUBLIC_ size_t gensec_max_update_size(struct gensec_security *gensec_security)
{
if (gensec_security->max_update_size == 0) {
return UINT32_MAX;
@@ -571,7 +571,7 @@ _PUBLIC_ NTSTATUS gensec_set_target_principal(struct gensec_security *gensec_sec
return NT_STATUS_OK;
}
-const char *gensec_get_target_principal(struct gensec_security *gensec_security)
+_PUBLIC_ const char *gensec_get_target_principal(struct gensec_security *gensec_security)
{
if (gensec_security->target.principal) {
return gensec_security->target.principal;
diff --git a/auth/gensec/gensec.h b/auth/gensec/gensec.h
index 9982718b0a..ab6b8ebbf2 100644
--- a/auth/gensec/gensec.h
+++ b/auth/gensec/gensec.h
@@ -253,6 +253,7 @@ const char *gensec_get_name_by_oid(struct gensec_security *gensec_security, cons
struct cli_credentials *gensec_get_credentials(struct gensec_security *gensec_security);
NTSTATUS gensec_init(void);
size_t gensec_max_input_size(struct gensec_security *gensec_security);
+size_t gensec_max_wrapped_size(struct gensec_security *gensec_security);
NTSTATUS gensec_unseal_packet(struct gensec_security *gensec_security,
uint8_t *data, size_t length,
const uint8_t *whole_pdu, size_t pdu_length,
@@ -316,6 +317,7 @@ int gensec_setting_int(struct gensec_settings *settings, const char *mechanism,
bool gensec_setting_bool(struct gensec_settings *settings, const char *mechanism, const char *name, bool default_value);
NTSTATUS gensec_set_target_principal(struct gensec_security *gensec_security, const char *principal);
+const char *gensec_get_target_principal(struct gensec_security *gensec_security);
NTSTATUS gensec_generate_session_info(TALLOC_CTX *mem_ctx,
struct gensec_security *gensec_security,