diff options
-rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -37,6 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | #include <the_Foundation/commandline.h> | 39 | #include <the_Foundation/commandline.h> |
40 | #include <the_Foundation/tlsrequest.h> | ||
40 | #include <SDL.h> | 41 | #include <SDL.h> |
41 | #include <stdio.h> | 42 | #include <stdio.h> |
42 | #include <signal.h> | 43 | #include <signal.h> |
@@ -58,6 +59,13 @@ int main(int argc, char **argv) { | |||
58 | mpg123_init(); | 59 | mpg123_init(); |
59 | #endif | 60 | #endif |
60 | init_Foundation(); | 61 | init_Foundation(); |
62 | /* IssueID #122: Recommended set of TLS ciphers for Gemini */ | ||
63 | setCiphers_TlsRequest("ECDHE-ECDSA-AES256-GCM-SHA384:" | ||
64 | "ECDHE-ECDSA-CHACHA20-POLY1305:" | ||
65 | "ECDHE-ECDSA-AES128-GCM-SHA256:" | ||
66 | "ECDHE-RSA-AES256-GCM-SHA384:" | ||
67 | "ECDHE-RSA-CHACHA20-POLY1305:" | ||
68 | "ECDHE-RSA-AES128-GCM-SHA256"); | ||
61 | SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); | 69 | SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); |
62 | SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1"); | 70 | SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1"); |
63 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { | 71 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { |