auth/gensec: make sure functions from gensec.c are in gensec.h
authorStefan Metzmacher <metze@samba.org>
Thu, 12 Jan 2012 15:18:38 +0000 (16:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 13 Jan 2012 03:58:40 +0000 (04:58 +0100)
metze

auth/gensec/gensec.c
auth/gensec/gensec.h

index d1dcc75..1e61bf0 100644 (file)
@@ -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;
index 9982718..ab6b8eb 100644 (file)
@@ -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,