Install public header files again and include required prototypes.
[ira/wip.git] / source4 / auth / auth_developer.c
index cc5e79631f4c35997a4332a44858ba8f14dbc9de..a2c9cbc828454d60b2a01c572faac3faf88ad728 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "auth/auth.h"
+#include "auth/auth_proto.h"
 #include "libcli/security/security.h"
 #include "librpc/gen_ndr/ndr_samr.h"
 
@@ -129,7 +130,7 @@ static NTSTATUS name_to_ntstatus_check_password(struct auth_method_context *ctx,
        return nt_status;
 }
 
-static struct auth_operations name_to_ntstatus_auth_ops = {
+static const struct auth_operations name_to_ntstatus_auth_ops = {
        .name           = "name_to_ntstatus",
        .get_challenge  = auth_get_challenge_not_implemented,
        .want_check     = name_to_ntstatus_want_check,
@@ -179,14 +180,14 @@ static NTSTATUS fixed_challenge_check_password(struct auth_method_context *ctx,
        return NT_STATUS_NO_SUCH_USER;
 }
 
-static struct auth_operations fixed_challenge_auth_ops = {
+static const struct auth_operations fixed_challenge_auth_ops = {
        .name           = "fixed_challenge",
        .get_challenge  = fixed_challenge_get_challenge,
        .want_check     = fixed_challenge_want_check,
        .check_password = fixed_challenge_check_password
 };
 
-NTSTATUS auth_developer_init(void)
+_PUBLIC_ NTSTATUS auth_developer_init(void)
 {
        NTSTATUS ret;