diff --git a/main.c b/main.c index 16e2bf9..9a4a098 100644 --- a/main.c +++ b/main.c @@ -29,6 +29,10 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#include +#endif #if (READLINE == GNU) #include #else @@ -844,7 +848,11 @@ int main (int argc, char **argv) { running_for_first_time (); parse_config (); + #ifdef __FreeBSD__ + tgl_set_rsa_key (TLS, "/usr/local/etc/" PROG_NAME "/server.pub"); + #else tgl_set_rsa_key (TLS, "/etc/" PROG_NAME "/server.pub"); + #endif tgl_set_rsa_key (TLS, "tg-server.pub");