]> granicus.if.org Git - sudo/commitdiff
Fix compilation error and export sample_policy struct.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 6 May 2016 17:12:45 +0000 (11:12 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 6 May 2016 17:12:45 +0000 (11:12 -0600)
From Michael Evans

plugins/sample/sample_plugin.c

index 2451c97c698621450a9fb21af98f14d4e1718672..9e9746a0337b2dce2825c46893775a4f570e608e 100644 (file)
@@ -187,7 +187,7 @@ check_passwd(void)
     msg.msg_type = SUDO_CONV_PROMPT_ECHO_OFF;
     msg.msg = "Password: ";
     memset(&repl, 0, sizeof(repl));
-    sudo_conv(1, &msg, &repl);
+    sudo_conv(1, &msg, &repl, NULL);
     if (repl.reply == NULL) {
        sudo_log(SUDO_CONV_ERROR_MSG, "missing password\n");
        return false;
@@ -462,7 +462,7 @@ io_log_output(const char *buf, unsigned int len)
     return rval;
 }
 
-struct policy_plugin sample_policy = {
+__dso_public struct policy_plugin sample_policy = {
     SUDO_POLICY_PLUGIN,
     SUDO_API_VERSION,
     policy_open,