Revert "Fix bug #7781 (Samba transforms "ShareName" to lowercase when adding new...
[samba.git] / source3 / lib / dummysmbd.c
index 464ba9230636b55c06669cebd67dfb7e64b13248..a41e6dc033a75aed60869e4f28ab77ab887c5dad 100644 (file)
@@ -52,23 +52,36 @@ NTSTATUS can_delete_directory(struct connection_struct *conn,
        return NT_STATUS_OK;
 }
 
-NTSTATUS srv_decrypt_buffer(char *buf)
+bool change_to_root_user(void)
 {
-        return NT_STATUS_OK;
+       return false;
 }
 
-NTSTATUS srv_encrypt_buffer(char *buffer, char **buf_out)
+struct event_context *smbd_event_context(void)
 {
-        *buf_out = buffer;
-        return NT_STATUS_OK;
+       return NULL;
 }
 
-void srv_free_enc_buffer(char *buf)
+struct messaging_context *smbd_messaging_context(void)
 {
-        ;
+       return NULL;
 }
 
-bool srv_encryption_on(void)
+/**
+ * The following two functions need to be called from inside the low-level BRL
+ * code for oplocks correctness in smbd.  Since other utility binaries also
+ * link in some of the brl code directly, these dummy functions are necessary
+ * to avoid needing to link in the oplocks code and its dependencies to all of
+ * the utility binaries.
+ */
+void contend_level2_oplocks_begin(files_struct *fsp,
+                                 enum level2_contention_type type)
 {
-        return false;
+       return;
+}
+
+void contend_level2_oplocks_end(files_struct *fsp,
+                               enum level2_contention_type type)
+{
+       return;
 }