summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/libsmb/smberr.c42
2 files changed, 0 insertions, 43 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 822ed1cd15..5d15e4e77a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1135,7 +1135,6 @@ bool netsamlogon_cache_have(const struct dom_sid *user_sid);
const char *smb_dos_err_name(uint8 e_class, uint16 num);
const char *get_dos_error_msg(WERROR result);
const char *smb_dos_err_class(uint8 e_class);
-char *smb_dos_errstr(char *inbuf);
WERROR map_werror_from_unix(int error);
/* The following definitions come from libsmb/trustdom_cache.c */
diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c
index 1156a9d75d..21d7f8860b 100644
--- a/source3/libsmb/smberr.c
+++ b/source3/libsmb/smberr.c
@@ -214,48 +214,6 @@ const char *smb_dos_err_class(uint8 e_class)
return result;
}
-/****************************************************************************
-return a SMB string from an SMB buffer
-****************************************************************************/
-char *smb_dos_errstr(char *inbuf)
-{
- char *result;
- int e_class = CVAL(inbuf,smb_rcls);
- int num = SVAL(inbuf,smb_err);
- int i,j;
-
- for (i=0;err_classes[i].e_class;i++)
- if (err_classes[i].code == e_class) {
- if (err_classes[i].err_msgs) {
- err_code_struct *err = err_classes[i].err_msgs;
- for (j=0;err[j].name;j++)
- if (num == err[j].code) {
- if (DEBUGLEVEL > 0)
- result = talloc_asprintf(
- talloc_tos(), "%s - %s (%s)",
- err_classes[i].e_class,
- err[j].name,err[j].message);
- else
- result = talloc_asprintf(
- talloc_tos(), "%s - %s",
- err_classes[i].e_class,
- err[j].name);
- goto done;
- }
- }
-
- result = talloc_asprintf(talloc_tos(), "%s - %d",
- err_classes[i].e_class, num);
- goto done;
- }
-
- result = talloc_asprintf(talloc_tos(), "Error: Unknown error (%d,%d)",
- e_class, num);
- done:
- SMB_ASSERT(result != NULL);
- return result;
-}
-
/*****************************************************************************
map a unix errno to a win32 error
*****************************************************************************/