Commit 13b2dafe authored by vysheng's avatar vysheng

Merge pull request #337 from kmoore134/master

Fix building on FreeBSD and install server.pub file to correct
parents f31ef233 62371377
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
#include <termios.h> #include <termios.h>
#include <unistd.h> #include <unistd.h>
#include <assert.h> #include <assert.h>
#ifdef __FreeBSD__
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#if (READLINE == GNU) #if (READLINE == GNU)
#include <readline/readline.h> #include <readline/readline.h>
#else #else
...@@ -844,7 +848,11 @@ int main (int argc, char **argv) { ...@@ -844,7 +848,11 @@ int main (int argc, char **argv) {
running_for_first_time (); running_for_first_time ();
parse_config (); 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"); tgl_set_rsa_key (TLS, "/etc/" PROG_NAME "/server.pub");
#endif
tgl_set_rsa_key (TLS, "tg-server.pub"); tgl_set_rsa_key (TLS, "tg-server.pub");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment