diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_terms.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_terms.c | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/src/exchange/taler-exchange-httpd_terms.c b/src/exchange/taler-exchange-httpd_terms.c index 1c703021f..10114f157 100644 --- a/src/exchange/taler-exchange-httpd_terms.c +++ b/src/exchange/taler-exchange-httpd_terms.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of TALER | 2 | This file is part of TALER |
3 | Copyright (C) 2019 Taler Systems SA | 3 | Copyright (C) 2019, 2021 Taler Systems SA |
4 | 4 | ||
5 | TALER is free software; you can redistribute it and/or modify it under the | 5 | TALER is free software; you can redistribute it and/or modify it under the |
6 | terms of the GNU Affero General Public License as published by the Free Software | 6 | terms of the GNU Affero General Public License as published by the Free Software |
@@ -38,51 +38,26 @@ static struct TALER_MHD_Legal *tos; | |||
38 | static struct TALER_MHD_Legal *pp; | 38 | static struct TALER_MHD_Legal *pp; |
39 | 39 | ||
40 | 40 | ||
41 | /** | ||
42 | * Handle a "/terms" request. | ||
43 | * | ||
44 | * @param rh context of the handler | ||
45 | * @param connection the MHD connection to handle | ||
46 | * @param args array of additional options (must be empty for this function) | ||
47 | * @return MHD result code | ||
48 | */ | ||
49 | MHD_RESULT | 41 | MHD_RESULT |
50 | TEH_handler_terms (const struct TEH_RequestHandler *rh, | 42 | TEH_handler_terms (struct TEH_RequestContext *rc, |
51 | struct MHD_Connection *connection, | ||
52 | const char *const args[]) | 43 | const char *const args[]) |
53 | { | 44 | { |
54 | (void) rh; | ||
55 | (void) args; | 45 | (void) args; |
56 | return TALER_MHD_reply_legal (connection, | 46 | return TALER_MHD_reply_legal (rc->connection, |
57 | tos); | 47 | tos); |
58 | } | 48 | } |
59 | 49 | ||
60 | 50 | ||
61 | /** | ||
62 | * Handle a "/privacy" request. | ||
63 | * | ||
64 | * @param rh context of the handler | ||
65 | * @param connection the MHD connection to handle | ||
66 | * @param args array of additional options (must be empty for this function) | ||
67 | * @return MHD result code | ||
68 | */ | ||
69 | MHD_RESULT | 51 | MHD_RESULT |
70 | TEH_handler_privacy (const struct TEH_RequestHandler *rh, | 52 | TEH_handler_privacy (struct TEH_RequestContext *rc, |
71 | struct MHD_Connection *connection, | ||
72 | const char *const args[]) | 53 | const char *const args[]) |
73 | { | 54 | { |
74 | (void) rh; | ||
75 | (void) args; | 55 | (void) args; |
76 | return TALER_MHD_reply_legal (connection, | 56 | return TALER_MHD_reply_legal (rc->connection, |
77 | pp); | 57 | pp); |
78 | } | 58 | } |
79 | 59 | ||
80 | 60 | ||
81 | /** | ||
82 | * Load our terms of service as per configuration. | ||
83 | * | ||
84 | * @param cfg configuration to process | ||
85 | */ | ||
86 | void | 61 | void |
87 | TEH_load_terms (const struct GNUNET_CONFIGURATION_Handle *cfg) | 62 | TEH_load_terms (const struct GNUNET_CONFIGURATION_Handle *cfg) |
88 | { | 63 | { |