Use md5.[ch]
Showing
3 changed files
with
5 additions
and
5 deletions
... | @@ -11,7 +11,7 @@ SUBDIRS = include testsuite | ... | @@ -11,7 +11,7 @@ SUBDIRS = include testsuite |
11 | 11 | ||
12 | lib_LTLIBRARIES = libmailbox.la | 12 | lib_LTLIBRARIES = libmailbox.la |
13 | 13 | ||
14 | EXTRA_DIST = mbx_mboxscan.c md5-rsa.h | 14 | EXTRA_DIST = mbx_mboxscan.c md5.h |
15 | 15 | ||
16 | libmailbox_la_SOURCES = \ | 16 | libmailbox_la_SOURCES = \ |
17 | address.c \ | 17 | address.c \ |
... | @@ -43,7 +43,7 @@ mbx_imap.c \ | ... | @@ -43,7 +43,7 @@ mbx_imap.c \ |
43 | mbx_mbox.c \ | 43 | mbx_mbox.c \ |
44 | mbx_mh.c \ | 44 | mbx_mh.c \ |
45 | mbx_pop.c \ | 45 | mbx_pop.c \ |
46 | md5-rsa.c \ | 46 | md5.c \ |
47 | message.c \ | 47 | message.c \ |
48 | memory_stream.c \ | 48 | memory_stream.c \ |
49 | mime.c \ | 49 | mime.c \ | ... | ... |
... | @@ -38,7 +38,7 @@ | ... | @@ -38,7 +38,7 @@ |
38 | # include <strings.h> | 38 | # include <strings.h> |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #include <md5-rsa.h> | 41 | #include <md5.h> |
42 | 42 | ||
43 | #include <mailutils/attribute.h> | 43 | #include <mailutils/attribute.h> |
44 | #include <mailutils/auth.h> | 44 | #include <mailutils/auth.h> |
... | @@ -756,7 +756,7 @@ pop_get_message (mailbox_t mbox, size_t msgno, message_t *pmsg) | ... | @@ -756,7 +756,7 @@ pop_get_message (mailbox_t mbox, size_t msgno, message_t *pmsg) |
756 | size_t i; | 756 | size_t i; |
757 | 757 | ||
758 | /* Sanity. */ | 758 | /* Sanity. */ |
759 | if (pmsg == NULL || mpd == NULL) | 759 | if (pmsg == NULL || mpd == NULL || msgno > mpd->messages_count) |
760 | return EINVAL; | 760 | return EINVAL; |
761 | 761 | ||
762 | monitor_rdlock (mbox->monitor); | 762 | monitor_rdlock (mbox->monitor); | ... | ... |
-
Please register or sign in to post a comment