Codebase list ulfius / 7c2a741
Upgrade to 2.7.6-1 Nicolas Mora 2 years ago
3 changed file(s) with 38 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
0 ulfius (2.7.6-1) unstable; urgency=medium
1
2 * New upstream release
3
4 -- Nicolas Mora <babelouest@debian.org> Sat, 06 Nov 2021 19:51:41 -0400
5
06 ulfius (2.7.4-1) unstable; urgency=medium
17
28 * New upstream release
0 test-smtp.patch
01 examples.patch
1 test-smtp.patch
22 doc.patch
22 Forwarded: not-needed
33 --- a/test/framework.c
44 +++ b/test/framework.c
5 @@ -25,6 +25,10 @@
5 @@ -26,12 +26,14 @@
66 #include <check.h>
77 #include <ulfius.h>
88
9 +#define BODY_NOT_REDIRECTED "This is the blue pill"
10 +#define BODY_REDIRECTED "Welcome to the Matrix, Neo!"
11 +
129 +#if 0
1310 #define SMTP_FROM "sender@localhost"
1411 #define SMTP_TO "recipient@localhost"
1512 #define SMTP_HOST "localhost"
16 @@ -36,9 +40,6 @@
13 #define SMTP_PORT 2525
14 #define SMTP_SUBJECT "E-mail subject for the test"
15 #define SMTP_BODY "E-mail body for the test as well"
16 +#endif
17
18 #define BACKLOG_MAX (10)
1719 #define BUF_SIZE 4096
18 #define STREQU(a,b) (strcmp(a, b) == 0)
20 @@ -40,6 +42,7 @@
21 #define BODY_NOT_REDIRECTED "This is the blue pill"
22 #define BODY_REDIRECTED "Welcome to the Matrix, Neo!"
1923
20 -#define BODY_NOT_REDIRECTED "This is the blue pill"
21 -#define BODY_REDIRECTED "Welcome to the Matrix, Neo!"
22 -
24 +#if 0
2325 #define PORT_PLAIN 2525
2426 #define PORT_RICH 2526
2527 #define FROM "from"
26 @@ -240,6 +241,7 @@
28 @@ -49,6 +52,7 @@
29 #define CONTENT_TYPE "text/ulfius; charset=utf-42"
30 #define SUBJECT "subject"
31 #define BODY "mail body"
32 +#endif
33
34 #define KEY1 "key1"
35 #define KEY2 "kéy2"
36 @@ -66,6 +70,7 @@
37 int sockfd;
38 };
39
40 +#if 0
41 /**
42 *
43 * Function that emulates a very simple SMTP server
44 @@ -251,6 +256,7 @@
2745
2846 pthread_exit(NULL);
2947 }
3149
3250 static char * get_file_content(const char * file_path) {
3351 char * buffer = NULL;
34 @@ -1270,6 +1272,7 @@
52 @@ -1303,6 +1309,7 @@
3553 }
3654 END_TEST
3755
3957 START_TEST(test_ulfius_send_smtp)
4058 {
4159 pthread_t thread;
42 @@ -1324,6 +1327,7 @@
60 @@ -1357,6 +1364,7 @@
4361 manager.mail_data = NULL;
4462 }
4563 END_TEST
4765
4866 START_TEST(test_ulfius_follow_redirect)
4967 {
50 @@ -1564,8 +1568,10 @@
68 @@ -1634,8 +1642,10 @@
5169 tcase_add_test(tc_core, test_ulfius_utf8_ignored);
5270 tcase_add_test(tc_core, test_ulfius_endpoint_callback_position);
5371 tcase_add_test(tc_core, test_ulfius_MHD_set_response_with_other_free);